13. OpenAI Assistant File Search & Vector Store Feature Using Python | Generative AI

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

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

  • @gatorreviews7487
    @gatorreviews7487 4 หลายเดือนก่อน +2

    Sounds great! 🙌

  • @emilbergstrom3542
    @emilbergstrom3542 26 วันที่ผ่านมา +1

    This creates new vector stores and files every time i run the script. How can i modify it to make it use one specific vector store and not create a new one every time?

    • @thecodecruise
      @thecodecruise  26 วันที่ผ่านมา +1

      Once your vector store is created, files have been put in the vector store and your assistant is created. Treat this as a separate script, you can store your vector Id and assistant Id, thats all you will need. Next separate this part of code as a second script gist.github.com/AwaisKamran/b10053108b3d3fe3c2745d2b33adf55f
      all you need here is your assistant Id.

  • @RajPatel-d4u
    @RajPatel-d4u หลายเดือนก่อน +1

    Is there a way to constantly update the database with new data? or we have to create a new store with the updated information?

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

      Its possible to update the vector store with the new data

    • @RajPatel-d4u
      @RajPatel-d4u หลายเดือนก่อน

      @@thecodecruisethrough the API calls? I know there is a way to add files on the dashboard on platform. Once a storage is created is there a way to change the chunk and overlap size? additionally, the store id remains the same correct?

  • @RAKARYAUDINALDANATADIKAR-lh9yj
    @RAKARYAUDINALDANATADIKAR-lh9yj 3 หลายเดือนก่อน +2

    Terimakasih lu keren banget bang

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน +1

      terima kasih banyak!

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

    What about pictures in files? Is it a good idea to also store pictures in the files or can't the vector storage "read" the pictures?

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

      @@DavldLangner As per my experimentation, having pictures in files dont generate good results. Especially charts and infographics.

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

      @@thecodecruisethanks! Because I have very large pdfs that produce a lot of tokens and I thought if I get rid of all the pictures I can reduce the amount of input tokens.

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

      @DavldLangner that would be a good idea, will these LLMs ans their tendency to hallucinate its always good to use images separately for any analysis but yet again not all models do very well

  • @lakshmanank3206
    @lakshmanank3206 4 หลายเดือนก่อน +2

    Thanks for the useful tutorial ❤💕. Is it possible to store HTML, video and audio in vector storage? will it get the answer from this?

    • @thecodecruise
      @thecodecruise  4 หลายเดือนก่อน +1

      Thanks, Trying to do better 🙂 Yes, its possible, the idea of vector embeddings is to store anything as vectors and you can derive answers from it but instead of building it from scratch I would recommend that you try Gemini 1.5 pro, I have two videos on this which summarize audio calls and extract details from the video, you can check them out below:
      1.th-cam.com/video/qE36eBfYeR8/w-d-xo.htmlsi=pvPM8jZKm2kU8ixc
      2. th-cam.com/video/qd-6kuyvc8s/w-d-xo.htmlsi=2ucm-fmxrLanHc8L

    • @lakshmanank3206
      @lakshmanank3206 4 หลายเดือนก่อน +1

      @@thecodecruise sure . I'll check with the videos that you shared

    • @thecodecruise
      @thecodecruise  4 หลายเดือนก่อน +1

      @@lakshmanank3206 Awesome! Let me know if it helps

  • @LearnWithShajeel
    @LearnWithShajeel 3 หลายเดือนก่อน +1

    Excellent Tutorial! Do you know how to UPDATE the file uploaded? And if it is possible then will it create new embeddings and update vector store automatically?
    I think this functionality is not supported yet!

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน

      Thanks! This functionality is indeed supported in V1 and V2 as well. In V1 of assistant, you would have to upload all files again with the updated one (which was stupid but I guess it was required because it would create embeddings all over again) . You can check this out here within the update assistant documentation of openAI

    • @LearnWithShajeel
      @LearnWithShajeel 3 หลายเดือนก่อน

      @@thecodecruise yes this functionality still does not exist.There is no endpoint related to modify file or Vector Store.

  • @LearnWithShajeel
    @LearnWithShajeel 3 หลายเดือนก่อน +1

    Can we specify multiple tools while creating assistants? foR I want to use file_search and functions calling at the same time.

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน

      Sure, I have a video on function calling which you can find here th-cam.com/video/nKz6aTIg47s/w-d-xo.html, its a two part video but explains the usage of function calling step by step used for assistants.

    • @LearnWithShajeel
      @LearnWithShajeel 3 หลายเดือนก่อน

      @@thecodecruise no but my question is that can we use both file search and function calling at the same time?

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน

      @@LearnWithShajeel Yes we can, we can enable functions on assistant along with search

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

    My filesearch not working

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

      @@SpoorthiVaidya Did you take all the steps in the video and most importantly make sure you bump up the openai version

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

    can you please provide the code for your application?

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

      Sure, here's the script for creating the assistant gist.github.com/AwaisKamran/eeab9a2b4f6ae9a9ca2fdc7298dd90fb and here's the script to run the assistant gist.github.com/AwaisKamran/85072f344477ce8ed55eb0b7a491585d

  • @alankerrigan
    @alankerrigan 3 หลายเดือนก่อน +1

    Is there any chance to load the file (CSV in this case) to a custom GPT, so when I share my custom GPT on the openai tools platform, I can update the CSV in the background with the latest data. Thanks

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน

      You can provide a CSV to custom GPT but you can't programmatically update the CSV behind the scenes, instead, you would have to update your file an reattach to the custom GPT every time. Although OpenAI Assistants can help you achieve this

  • @LeeYeon-qv1tz
    @LeeYeon-qv1tz 3 หลายเดือนก่อน +1

    Can we store csv files in vector store?

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน +1

      Yes

    • @LeeYeon-qv1tz
      @LeeYeon-qv1tz 3 หลายเดือนก่อน +1

      @@thecodecruise Thanks for replying! I want to store CSV files in vector store and ask openai to generate a content based on a CSV file. But openai has to go through all CSV files for that. Is this achievable?

    • @thecodecruise
      @thecodecruise  3 หลายเดือนก่อน +1

      @@LeeYeon-qv1tz This is achievable, you can tweak your openai assistant to just use one CSV file. I would also recommend using pandasAI for this task, check the documentation here docs.pandas-ai.com/

    • @LeeYeon-qv1tz
      @LeeYeon-qv1tz 3 หลายเดือนก่อน

      @@thecodecruise Thanks!