OpenAI Assistants API tutorial: Assistants, file uploads, retrieval, threads and more

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 25

  • @rachpalsingh3498
    @rachpalsingh3498 9 หลายเดือนก่อน +1

    Super useful. Can not be more simplified. Thanks a ton for your efforts. Success !

  • @BrunoSetteOficial
    @BrunoSetteOficial 11 หลายเดือนก่อน +1

    Another great tutorial, thanks a lot!

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      Glad you liked it!

  • @brianmorin5547
    @brianmorin5547 9 หลายเดือนก่อน

    Exactly what I was looking to do. However, one big problem -> the ability for it to answer questions about the KB couldn't be further away from the experience when I drag-and-drop a file into the prompt. Have you experienced this? This problem alone is keeping us out of production.

  • @iamnojabroni
    @iamnojabroni 10 หลายเดือนก่อน

    Ralf, quality content my man! I am a complete code newb and forked your Gadget Assistants API project. I really want to add the functionality of a user adding files to the thread (not to the Assistant). Any tips on how to do this?

  • @aisprint
    @aisprint 11 หลายเดือนก่อน +1

    Thanks, Ralf. This is the topic I wanted to know and great. It would be appreciated if you can make a tutorial to upload files with thread level not assistants, meaning that uploaded files are not taken over in new thread??

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      Thanks for the suggestion, i have a few other tutorials lined up before i do that one. Keep your eyes peeled in the future.

  • @wkhatch
    @wkhatch 11 หลายเดือนก่อน +1

    Thanks for a great walk through. Offhand, is there anything that prevents us from using Threads, to leverage the state management features, along with our own custom RAG, such as combining the existing Embeddings' api's?

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      I'm not sure about your use-case. But on the surface there shouldn't be anything that prevents you from inserting a step inbetween Assistants calls to e.g. fetch context from somewhere and pass it in with the next assistant call. Is there any reason why you wouldn't want to upload the same documents (context) to the Assistant and use knowledge retrieval instead?

    • @wkhatch
      @wkhatch 11 หลายเดือนก่อน +1

      I already have a lot of data stored in a vector store, and the files and retrieval seems limited in terms of how much you can store, and at additional expense, etc. I'd much rather continue using my own RAG, and just refactor the state persistence in, but that's just for this particular use case. I have no bias against the new retrieval in general.
      @@ralfelfving

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      Ok, makes sense. As mentioned, you should be able to use it by appending your desired context. But I'd compare pricing of Assistants API vs Chat completions if price is an issue, iirc Assistants is more expensive.

    • @wkhatch
      @wkhatch 11 หลายเดือนก่อน

      I'd still like to use Assistants, but mainly for Threads to manage the state. @@ralfelfving

  • @michaelwallace4757
    @michaelwallace4757 9 หลายเดือนก่อน

    Hi Ralf, great video. VIDEO IDEA... You have another video detailing OpenAI Assistant Chat App using Gadget. Expanding on that video to add file uploads and management would be very useful.

  • @debeerpaul
    @debeerpaul 8 หลายเดือนก่อน

    Bear in mind the token limit for large files. Also it hullucinates sometimes with pdf files.

  • @SanchitaPaul-b1i
    @SanchitaPaul-b1i หลายเดือนก่อน

    how about in php? if I want to use curl?

  • @Zoo-Wee-Mama-Sq
    @Zoo-Wee-Mama-Sq 11 หลายเดือนก่อน +1

    This is great! I understand the use of "openai.beta.assistants.create" well enough, but I can't find any information on how to retrieve an existing Assistant (that I made in the Playground) via the API. Is there a "openai.beta.assistants.getAssistant"? My particular assistant needs access to the many files that I uploaded for it on the playground, but the user doesn't need to be able to upload their own.
    Edit:
    I figured it out. It's not called getAssistant, it's called retrieve. Use it like const response = openai.beta.assistants.retrieve("assistant id from playground");

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน

      You got it!

  • @DustyDiffusion
    @DustyDiffusion 11 หลายเดือนก่อน +1

    Hi Ralf, thanks a lot for those incredible explanations. I'm working on a new project and I'm really new to this kind of stuff. I created a project and deployed it online by following a tutorial on TH-cam. Although I made some customizations, the project currently uses the chatGPT model and provides generic responses. I'm interested in having the conversation part of the project communicate with the assistant I created in OpenAI as you do in this video, but I'm not sure if this is possible. Could you please help me with this? I would greatly appreciate your assistance. Aside from this message, I will also send an email regarding this matter.

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      Sorry, I missed this comment. Hope you figured it out!

    • @DustyDiffusion
      @DustyDiffusion 11 หลายเดือนก่อน

      You are the best! I'll watch the new one again and try to figure it out. Thanks a lot! @@ralfelfving

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w 11 หลายเดือนก่อน +1

    How about in Python?

    • @ralfelfving
      @ralfelfving  11 หลายเดือนก่อน +1

      There's a lot of people doing Python tutorials so I'm sure you can find some out there, I'll stick to Node.

  • @hassanahmad1483
    @hassanahmad1483 8 หลายเดือนก่อน

    What is use of these assistants?if we can't imploy

    • @ralfelfving
      @ralfelfving  8 หลายเดือนก่อน

      This is a tutorial of how to build with these APIs. The use is up to you to decide.

    • @hassanahmad1483
      @hassanahmad1483 8 หลายเดือนก่อน

      @@ralfelfving thank You.... Can we imploy an assistant into website?