How To Integrate OpenAI With Azure Vector Search aka Azure Cognitive Search

  Рет қаралды 15,947

Shweta Lodha

Shweta Lodha

Күн бұрын

Пікірлер: 41
@shweta-lodha
@shweta-lodha Жыл бұрын
Code snippets and bit of explanation shweta-lodha.medium.com/step-by-step-tutorial-to-integrate-openai-with-azure-cognitive-search-vector-search-4d75b400675c
@jorgeanicama8625
@jorgeanicama8625 Жыл бұрын
Very straight to the point. Just the video i needed to connect many isolated concepts! Thank you very much. !
@shweta-lodha
@shweta-lodha Жыл бұрын
Glad you find it useful. Stay tuned for more such bites 👍
@soubarnobanerjee8257
@soubarnobanerjee8257 Жыл бұрын
Just loving your contents! There are a lot of grey areas onto the LLMs and how they work if we integrate Azure services, especially the vector DB part. Using FAISS, Chroma, etc are good for POCs, that too performed internally.... but something which gets accepted in enterprise level is the one which you are talking about in this video!! Thank you
@shweta-lodha
@shweta-lodha Жыл бұрын
Thank you 😊
@deepikahari3790
@deepikahari3790 9 ай бұрын
I could not find "generate_embeddings" function definition.
@joannezhu101
@joannezhu101 Жыл бұрын
Thank you Shweta, really helpful for me to understand how the Cognitive search works. I have another question, wouldn't it be easier to use Azure openAI instead of OpenAI as the chat language model towards the end? I'll duplicate the code on my end. Thank you so much for sharing this with us.
@KushwanthK
@KushwanthK 8 ай бұрын
thanks this is really good where is generate_embeddings function located and which embedding model are you using? share the notebook?
@nikithajadhav-d2r
@nikithajadhav-d2r Жыл бұрын
Hi Thank you for the video ,i am getting httpresponseerror invalid parameter can u help me with this?
@jatinnandwani6678
@jatinnandwani6678 3 ай бұрын
Thanks Shwetha
@MrRugev
@MrRugev Жыл бұрын
Thank u!!!!, your videos have helped me a lot.
@shweta-lodha
@shweta-lodha Жыл бұрын
I'm so glad!
@abhayrajput9546
@abhayrajput9546 Жыл бұрын
What is generate_embeddings ?, not there in your blog
@shweta-lodha
@shweta-lodha Жыл бұрын
This implementation varies based on your choice - whether you are going with OpenAI embedding, hugging face or any other. Purpose of this function is to generate the embedding for the given text
@Haraker21
@Haraker21 Жыл бұрын
Hi, how would you suggest to implement this solution with multiple documents?
@shweta-lodha
@shweta-lodha Жыл бұрын
It doesn’t actually matter from DB side, whether you are taking single or multiple docs. It only differs at a point where you are reading your docs. If you have multiple docs, you can load using some directory loader
@OleksandrAkimenko
@OleksandrAkimenko Жыл бұрын
This line is not fully displayed in the video could you kindly provide the rest of the line, please? SearchField(name="embedding", type=SearchFieldDataType.Collection (SearchFieldDataType.Single), searchable=True, vector_search) Thanks
@OleksandrAkimenko
@OleksandrAkimenko Жыл бұрын
as well as generate_embedding function
@shweta-lodha
@shweta-lodha Жыл бұрын
I don't have the complete code, but I hope this snippet would work: fields = [ SimpleField(name="documentId", type=SearchFieldDataType.String, filterable=True, sortable=True, key=True), SearchableField(name="content", type=SearchFieldDataType.String), SearchField(name="embedding", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), searchable=True, vector_search_dimensions = 1536, vector_search_configuration ="my-vector-config") ] index = SearchIndex( name=index_name, fields=fields, vector_search=vector_search )
@shweta-lodha
@shweta-lodha Жыл бұрын
response = openai.Embedding.create( input="text", engine="text-embedding-ada-002") embeddings = response['data'][0]['embedding']
@OleksandrAkimenko
@OleksandrAkimenko Жыл бұрын
Thanks!@@shweta-lodha
@joellim1
@joellim1 Жыл бұрын
Hi Shweta, your content is very clear and useful! How might we get the full .ipynb source code so we can try out the solution ourselves? For instance, generate_embeddings function is not shown.Thank you for all that you do!
@shweta-lodha
@shweta-lodha Жыл бұрын
It is there on my Medium blog. Medium link in present on my profile page
@joellim1
@joellim1 Жыл бұрын
Many thanks@@shweta-lodha
@permanazainal6003
@permanazainal6003 Жыл бұрын
@@shweta-lodha medium member only
@dheerajsachdeva5735
@dheerajsachdeva5735 Жыл бұрын
Hi! Can you please share the notebook that you used in the video? The medium site is for members only.
@shweta-lodha
@shweta-lodha Жыл бұрын
That is the only option I have today. Sorry for that
@hrishabhgupta7568
@hrishabhgupta7568 Жыл бұрын
I am following as per the tutorial but getting this error while creating the Index: vector_search_configuration is not a known attribute of class and will be ignored
@shweta-lodha
@shweta-lodha Жыл бұрын
Are you sure, it’s an error and not a warning?
@Shaikshavali.D
@Shaikshavali.D 9 ай бұрын
Hi @shweta lodha, can we rename the index name in azure cognitive search.
@shweta-lodha
@shweta-lodha 9 ай бұрын
You can’t
@OleksandrAkimenko
@OleksandrAkimenko Жыл бұрын
This is so good, thank you so much
@shweta-lodha
@shweta-lodha Жыл бұрын
Glad to know that 🥰
@pavan1006
@pavan1006 Жыл бұрын
In production, how do you deploy this python code ?
@shweta-lodha
@shweta-lodha Жыл бұрын
You can create a web app and do it
@HariTummuri
@HariTummuri 8 ай бұрын
can we use pdf files in the sameway?
@shweta-lodha
@shweta-lodha 7 ай бұрын
No, reader would be different
@HemantKrSahu
@HemantKrSahu 4 ай бұрын
Thanks 🙏🏼 to you
@shweta-lodha
@shweta-lodha 3 ай бұрын
Always welcome
@ssss-u7w
@ssss-u7w 11 ай бұрын
thanks for the video.
@shweta-lodha
@shweta-lodha 11 ай бұрын
You're welcome
Don't miss this if you are using Azure Cognitive Search
3:26
Shweta Lodha
Рет қаралды 2 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 520 М.
Introducing Vector Search in Azure Cognitive Search | Azure Friday
21:36
Difference Between Vector Search & Semantic Search
12:39
Shweta Lodha
Рет қаралды 4,9 М.
Azure OpenAI - Chat with Your Own Data
14:41
Meet Kamal Today - Cloud Mastery
Рет қаралды 64 М.
How to use Azure OpenAI on your Data with Copilot Studio
16:59
Lisa Crosbie
Рет қаралды 67 М.