we are creating a chatbot using gpt-35-turbo and configured cognitive search using own data stored inside storage blob. The chat completion provides result from the stored content however it also provides search results out the scope of stored content. Not sure if it is using outside content outside my data scope.
How I can Limit the search result only to return response from native data rather outside the scope.
How I can Limit the search result only to return response from native data rather outside the scope in azure open ai
2
Answers
We would recommend using the latest models, Its provided as a sample here: Use your own data with Azure OpenAI Service – Azure OpenAI | Microsoft Learn
We also have a example where you use Az Cog Search to index the data, then use RAG pattern to use Open AI completion using the matches docs from Az Cog Search.
RAG and generative AI – Azure Cognitive Search | Microsoft Learn
one thing you can do is to maybe integrate your search solution with your gpt engine.
For instance lets say I have created a search solution for analysing papers of an engineering entrance exam and I want my engine to return all the important chapters asked in the specific question paper. So a beneficial solution to this problem would be to use your indexer to retrieve all the keywords from the specific pdf document imported into your search solution from a storage container and then pass those keywords into the chat engine prompting it to list out the important engineering chapters based on those keywords.
Attaching a python code as well to give you a detailed idea of my approach with your problem.