Тёмный

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

The Code Cruise
Подписаться 2,2 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@bader-eddineqodia5964
@bader-eddineqodia5964 3 дня назад
Excellent Tutorial! what do you think, using openai build-in file search or using like others third party softwares like Pinecone ?
@thecodecruise
@thecodecruise 3 дня назад
@bader-eddineqodia5964 Thanks, yes we can build something like that but the realtime API is the rival solution to limit third party interactions
@LearnWithShajeel
@LearnWithShajeel 5 месяцев назад
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 5 месяцев назад
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 5 месяцев назад
@@thecodecruise yes this functionality still does not exist.There is no endpoint related to modify file or Vector Store.
@LearnWithShajeel
@LearnWithShajeel 5 месяцев назад
Can we specify multiple tools while creating assistants? foR I want to use file_search and functions calling at the same time.
@thecodecruise
@thecodecruise 5 месяцев назад
Sure, I have a video on function calling which you can find here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nKz6aTIg47s.html, its a two part video but explains the usage of function calling step by step used for assistants.
@LearnWithShajeel
@LearnWithShajeel 5 месяцев назад
@@thecodecruise no but my question is that can we use both file search and function calling at the same time?
@thecodecruise
@thecodecruise 5 месяцев назад
@@LearnWithShajeel Yes we can, we can enable functions on assistant along with search
@SriKrishna-w3r
@SriKrishna-w3r 13 дней назад
Hi, my use case is to create a python code based on the conditions which are available in the file. This file is uploaded to vector store but i am not getting the exact code from the ai after uploading file to vector store and updated the same to assistant. I have used the same code provided by you. Can you help me in this.
@thecodecruise
@thecodecruise 12 дней назад
Did you try adding instructions within the system prompt? If its not producing the same result then you need to direct the model in a specific way through run instructions and the system prompt itself
@RajPatel-d4u
@RajPatel-d4u 2 месяца назад
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 2 месяца назад
Its possible to update the vector store with the new data
@RajPatel-d4u
@RajPatel-d4u 2 месяца назад
@@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?
@alankerrigan
@alankerrigan 5 месяцев назад
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 5 месяцев назад
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
@DavldLangner
@DavldLangner 2 месяца назад
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 2 месяца назад
@@DavldLangner As per my experimentation, having pictures in files dont generate good results. Especially charts and infographics.
@DavldLangner
@DavldLangner 2 месяца назад
@@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 2 месяца назад
@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
@emilbergstrom3542
@emilbergstrom3542 2 месяца назад
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 2 месяца назад
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.
@gatorreviews7487
@gatorreviews7487 6 месяцев назад
Sounds great! 🙌
@thecodecruise
@thecodecruise 6 месяцев назад
🤓
@lakshmanank3206
@lakshmanank3206 5 месяцев назад
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 5 месяцев назад
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.ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qE36eBfYeR8.htmlsi=pvPM8jZKm2kU8ixc 2. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qd-6kuyvc8s.htmlsi=2ucm-fmxrLanHc8L
@lakshmanank3206
@lakshmanank3206 5 месяцев назад
@@thecodecruise sure . I'll check with the videos that you shared
@thecodecruise
@thecodecruise 5 месяцев назад
@@lakshmanank3206 Awesome! Let me know if it helps
@RAKARYAUDINALDANATADIKAR-lh9yj
@RAKARYAUDINALDANATADIKAR-lh9yj 4 месяца назад
Terimakasih lu keren banget bang
@thecodecruise
@thecodecruise 4 месяца назад
terima kasih banyak!
@LeeYeon-qv1tz
@LeeYeon-qv1tz 5 месяцев назад
Can we store csv files in vector store?
@thecodecruise
@thecodecruise 5 месяцев назад
Yes
@LeeYeon-qv1tz
@LeeYeon-qv1tz 5 месяцев назад
@@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 5 месяцев назад
@@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 5 месяцев назад
@@thecodecruise Thanks!
@ninaadshenoy5494
@ninaadshenoy5494 2 месяца назад
can you please provide the code for your application?
@thecodecruise
@thecodecruise 2 месяца назад
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
@SpoorthiVaidya
@SpoorthiVaidya 3 месяца назад
My filesearch not working
@thecodecruise
@thecodecruise 3 месяца назад
@@SpoorthiVaidya Did you take all the steps in the video and most importantly make sure you bump up the openai version
Далее
Part 5. Roblox trend☠️
00:13
Просмотров 3,1 млн
OpenAI Assistants Tutorial for Beginners
27:03
Просмотров 66 тыс.
How I Made AI Assistants Do My Work For Me: CrewAI
19:21
OpenAI Assistant API Tutorial With Code Examples
21:52
Create a Custom AI Assistant + API in 10 Mins
10:28
Просмотров 114 тыс.