@Aditya56 Thanks for the question, Can you please share the code and JSON payload.
The following link demonstrates the general end-to-end data flow of fetching citation information from the context messages of a response
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using the OpenAIClient with the AzureCognitiveSearch extension, which has populated its index with the SharePoint indexer. When the responses come back, we get normal citations in the response, such as [doc1], [doc2], etc., but the actual reference later does not give the URL/filename. It returns 'Link to Document 1', 'Link to Document 2', etc. How can we replace 'Link to Document 1' with the actual document name/URI? Where do we get this information as it is passed into the request by the extension?
Thanks, The citation information is present on the "context" field of response messages (delta for streaming) and the JSON payload that features citation information is available there.