[QUERY]Why is ChatMessageContext.Citations ChunkId field is empty after calling completion.GetMessageContext() #49223
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.AI.OpenAI
Query/Question
I'm using Azure.AI.OpenAI library version 2.1.0 and data source as Azure search index with chunked data.
When I'm getting results back after calling to CompleteChatAsync, I need to have access to all Citations and their ChunkId properties.
The code I'm using:
All works and citations are retrieved, but the messageContext Citations objects always have ChunkId="0".
Though in my Azure search index, there are always
chunk_id
values populated.Are there any additional steps or setup I need to do, in order to get ChunkId values back?
Thanks.
Environment
.NET 8
Hosting: Azure App Service on Windows.
Packages:
The text was updated successfully, but these errors were encountered: