Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6.4k stars 4.28k forks source link

feature: how to ask a question about a particular document? #2067

Open amirj opened 1 month ago

amirj commented 1 month ago

Is there any way to ask a question about a particular document?

I do understand that RAG architecture has not been designed to ask a question about a particular document but wondering is it possible to hack the "retrieval" part by providing a filename?

I can ask a query like "summarize abc.pdf" and sometimes it works, sometimes not! but looking for a more reliable solution.

bnodir commented 1 month ago

Check https://github.com/Azure-Samples/azure-search-openai-demo/issues/493#issuecomment-1662814997. I wish I could show available files of the search index in the user input field when a trigger like @ is used, similar to how Copilot for MS does.

amirj commented 1 month ago

@bnodir it would be amazing feature!