[QUERY] Can we get custom fields from the index in citations during a RAG process? #47949
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 2.1.0
Query/Question
When using chat completions OnYourData, citations are returned with a predefined set of properties. Is it possible to retrieve additional fields from the index to avoid having to do additional calls to the search service to get relevant metadata?
I thought maybe setting AzureSearchChatDataSource.OutputContexts = DataSourceOutputContexts.AllRetrievedDocuments might include the full documents, but this just causes the GetMessageContext extension method to throw an Exception. (Probably the same issue as bug 46719).
If this is NOT possible today, feel free to change this to a feature request :)
Environment
dotnet --info
.NET SDK:
Version: 8.0.202
Commit: 25674bb2f4
Workload version: 8.0.200-manifests.8cf8de6d
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.202\
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.3
Architecture: x64
Commit: 9f4b1f5d66
The text was updated successfully, but these errors were encountered: