Closed FranciscoMMendes closed 2 months ago
That should already be possible, you would want to change the prompt to specify that it does not have to answer according to sources. The prompt is here: https://github.com/Azure-Samples/azure-search-openai-demo/blob/e8fd8190151f9af6e8b38670c5ddd84a0e793fae/app/backend/approaches/chatreadretrieveread.py#L57
Where things can get interesting is when a user asks a question that should have an answer from the PDF documents, but they get a general answer instead. For example, if they ask "what does a PM do?" and your documents have their own definition of "PM", but the model answers with what it knows generally about PMs. So I would recommend running evaluations on questions in the overlap to make sure you're happy with the response.
I would like to know if it is possible to have a chatbot that can reply to questions using the PDFs provided but also to use the model's own knowledge base to answer any other questions, like chatgpt does. So it would be some kind of a hybrid version of a RAG.
Is this possible using this current solution? Would it just be a case of changing the prompt to be able to reply to both knowledge bases?
Thank you in advance for your input.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Versions
Mention any other details that might be useful