How to Use OpenAI's Assistants API v2 (step-by-step + easter egg)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 38

  • @lucvandenboogaart2630
    @lucvandenboogaart2630 2 месяца назад +2

    Legendary video Mark! I was a bit overwhelmed by the api documentation in terms of how broad it is. This video absolutely helped me in gaining that necessary overview to design my applications software architecture. I love how you just show a working example with all components loosely integrated to demonstrate how all of the components work together. You probably saved me a day of work going back on early uninformed choices in a 30 min video. Subscribed!

    • @Mark_Kashef
      @Mark_Kashef  2 месяца назад

      So so happy I was able to save you some time!! Thanks for the sub 🦾

  • @tuaitituaiti1565
    @tuaitituaiti1565 2 месяца назад

    Man, I love this deep dive for a newb sub, visual/audio learner 55+ old fella. Beers on me when you are Aotearoa Chur Koko...🎬🦅🙏 bring LO...

  • @roc-yo
    @roc-yo 7 дней назад

    Thanks ! Great and concise, keep up the good work

    • @Mark_Kashef
      @Mark_Kashef  7 дней назад

      Thanks so much for the kind words!

  • @uwegenosdude
    @uwegenosdude 3 месяца назад

    Hi Mark. Thanks a lot for this great video. I played around some months ago with the v1 of the assistants API. With this background your video helped me a lot to understand what has changed. I liked the idea of using Perplexity API to get information about recent information which is not part of OpenAIs huge LLMs.

    • @Mark_Kashef
      @Mark_Kashef  3 месяца назад +1

      I see you binging my content haha!
      So happy you’re finding value in it 🦾

  • @AaronGayah-dr8lu
    @AaronGayah-dr8lu Месяц назад

    This was an exceptional video. Thanks for that.

    • @Mark_Kashef
      @Mark_Kashef  Месяц назад

      thanks Aaron! Glad it was helpful 🦾

  • @Lyriks_
    @Lyriks_ 2 месяца назад

    Honest, Straight to the point, insightful, that's what we like, good job mate ! By the way i'm curious about the scrapping assistant for documentation, do you have any tutorial about this ?

    • @Mark_Kashef
      @Mark_Kashef  2 месяца назад

      My pleasure! Appreciate your appreciation
      I use FireCrawl to help me with a lot of documentation scraping - if it misses anything I get my VA army to help me with the rest

  • @hadinayebi
    @hadinayebi 2 месяца назад

    this was very helpful, Thank you so much. Can you also dive into the portion where you define the actions in custom GPT to talk to replit microservice? (The OpenAPI schema you used to make that connection)

  • @amjadarnaout7019
    @amjadarnaout7019 18 дней назад

    I have a problem that when I upload files in the search tool, some answers work to answer from outside these files. Are there specific instructions for it?

    • @Mark_Kashef
      @Mark_Kashef  18 дней назад

      This is a known flaw for the assistants API unfortunately- the best you can do is in your prompt, to tell it to refer to ‘file names’

  • @duynguyen6229
    @duynguyen6229 5 месяцев назад

    keep update more video, it's so good. Thank you

    • @Mark_Kashef
      @Mark_Kashef  5 месяцев назад +1

      Thank you so much for the feedback! I’ll keep the content coming for sure 🤙🏽

  • @The_Light_Pharaoh
    @The_Light_Pharaoh 19 дней назад

    THe link to the scrape of the api documents is wrong it's to your website instead.

    • @Mark_Kashef
      @Mark_Kashef  19 дней назад

      thank you for pointing out! just fixed

  • @lezgoverci
    @lezgoverci 5 месяцев назад +2

    you can just add the "file_search" in the tools array when you create the assistant

    • @Mark_Kashef
      @Mark_Kashef  5 месяцев назад

      Thank you! I can’t believe I figured everything else out and not this.
      Much appreciated 🙏🏻

  • @SaminYasar_
    @SaminYasar_ 5 месяцев назад

    this is super helpful thanks mark

  • @TUSHARGOPALKA-nj7jx
    @TUSHARGOPALKA-nj7jx 2 месяца назад

    During the chatbot conversation, how to ensure that the tool call its used only during a specific step, and not for all the user queries?

    • @Mark_Kashef
      @Mark_Kashef  2 месяца назад +1

      That would be a prompt engineering component - make sure a certain set of criteria or threshold needs to be met to trigger the tool.
      I would designate a whole portion of the prompt for this.

  • @James.1_2-3
    @James.1_2-3 4 месяца назад

    Hey Mark, so I was making the assistant of the ChatGPT website itself but when I run it with my large documents that are in the vector search, it reaches a token limit and I wont be able to ask any more questions until I clear or restart the assistant. Im confused. Using Chat GPT is allows for long conversations. Doing the process you explained, would this allow me to better communicate with the assistant without it hitting a wall? Maybe Im going about this wrong or not being as efficient.

    • @Mark_Kashef
      @Mark_Kashef  4 месяца назад

      Hey Rob!
      The assistants API has a per document limit of around 5 million tokens; I notice that even at the 3-4 million mark, the indexing slows down quite a bit.
      Because of that, I convert all PDFs into txt files, then split those text files using a text file splitter online.
      So if I have a document with 5,000,000 tokens, I’ll break it up into 1,500,000 token documents so that it can properly index them.

  • @TrevorMacmurray
    @TrevorMacmurray 4 месяца назад

    Both of your colab links are the same, can you post the one for the function calling?

    • @Mark_Kashef
      @Mark_Kashef  4 месяца назад

      thanks for pointing that out @Trevor!
      just added it :)

  • @Taha_EH
    @Taha_EH 5 месяцев назад

    Heat every time you drop Mark🔥🔥🔥

    • @Mark_Kashef
      @Mark_Kashef  5 месяцев назад

      Appreciate you brother!

  • @JoeKnouse
    @JoeKnouse 4 месяца назад

    Say Mark would you be so kind as to update with the link to the documentation scrape? That would be so useful. Or if you could let us know what you used to scrape the documentation, that would work too. Thanks!

    • @Mark_Kashef
      @Mark_Kashef  4 месяца назад +1

      Hi Joe! RUclips doesn't let me attach Google Doc links, but I managed to get around it by adding bitly links:
      1) Part 1: bit.ly/3VDXC4Y
      2) Part 2: bit.ly/3xeFCVz
      I had my VA do this, but if you wanted to try to do it in an automated fashion, I would recommend trying FireCrawl and entering the URL. Will be making a video on this in a few weeks.

    • @JoeKnouse
      @JoeKnouse 4 месяца назад

      @@Mark_Kashef Thank you so much! Really appreciate it!

    • @Mark_Kashef
      @Mark_Kashef  4 месяца назад

      @@JoeKnouse pleasure!

  • @gayendrawijesekara6276
    @gayendrawijesekara6276 5 месяцев назад

    This is amazing. By the way Mark, the link to replit seems broken

    • @Mark_Kashef
      @Mark_Kashef  5 месяцев назад +1

      Thanks for pointing out! It was accidentally set to private, you should be able to see it now :)

  • @mrwhite2894
    @mrwhite2894 4 месяца назад

    Please add time stamps

    • @Mark_Kashef
      @Mark_Kashef  4 месяца назад

      Thank you for the feedback, will do :)