AzureExtensionsContext is not populated with document info when called via the API

Sean Walsh 50 Reputation points
2023-10-13T12:48:52.2433333+00:00

When I use Azure Data Studio, I can interact with my custom data set and the query returns the AzureExtensionsContext object populated with the appropriate document identification details, as a "tool" role message.

Screenshot of the chat:

User's image

If I inspect that content, I can see the filePath being correctly populated with the file Id (a Guid + PageNumber):

User's image

I copy the C# code into my app, and run it. I get the following:

User's image

I can see the Content populated in the AzureExtensionsContext, but when I inspect that JSON, the filePath is null:

User's image

How do I get the API call to include the file information?

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,279 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,933 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.