Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
787 stars 395 forks source link

Add citations to the webapp #1106

Open alsiesta opened 2 months ago

alsiesta commented 2 months ago

Motivation

There is other Azure Chats where the WebApp Frontend offers the feature that links to the matching documents are offered in the completion, you can click them and in a side panel the related embedding shows up and a link to the data file.

adamdougal commented 2 months ago

@alsiesta Heya! Can you elaborate a bit further? Citations are already present on the deployed web app frontend.

alsiesta commented 2 months ago

Yes I finally realized that citations can be activated, if I set the CONVERSATION_FLOW=byod But that is not abvious. The markdown doc. https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/blob/main/docs%2Fconversation_flow_options.md doesn't even mention, that this will enable the citations.

I wonder, what other great features are still hidden 😀

It would for instance be great to have a chat history.

Kind regards and thank you, for feedback, Alexander


From: Adam Dougal @.> Sent: Wednesday, July 10, 2024 3:23:17 PM To: Azure-Samples/chat-with-your-data-solution-accelerator @.> Cc: Alexander Schönfeld @.>; Mention @.> Subject: Re: [Azure-Samples/chat-with-your-data-solution-accelerator] Add citations to the webapp (Issue #1106)

@alsiestahttps://github.com/alsiesta Heya! Can you elaborate a bit further? Citations are already present on the deployed web app frontend.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/issues/1106#issuecomment-2220500936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANI6KOJTUTI4UYPMIBENVG3ZLUYULAVCNFSM6AAAAABKHGOD3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQGUYDAOJTGY. You are receiving this because you were mentioned.Message ID: @.***>

adamdougal commented 2 months ago

Citations should be returned regardless of what CONVERSATION_FLOW is set to. This is what I see for example when it's set to custom which is the default:

image

Do you not see this at all when it's set to custom?

alsiesta commented 2 months ago

Short answer: I don't see any citations when CONVERSATION_FLOW is set to 'custom'. I found out by chance, that when CONVERSATION_FLOW is set to 'byod' only I do see them - that's why i posted my comment, because its a super important feature. I would rather set 'byod' as default than 'custom'. Because asintermediate programmer like me, who has done a lot, there is still much more i haven't done or know about yet. I never heard about a custom orchestrator - i do see it is complex - but to start with, I first have to learn about it.

amer7862000 commented 1 month ago

I'm not sure if this is directly related, but could we include a reference to the specific PDF page where the information was sourced? Right now, the PDF link opens the document but it doesn't navigate to the exact page. Hope that makes sense.