Search from sample code c# API with my own data always return "The requested information is not available in the retrieved data"

Enricoe 5 Reputation points
2023-09-27T10:25:02.3333333+00:00

I created a Chat playground with ChatGPT-4 and my own data using Azure AI Studio. It works perfectly in Azure AI Studio and also as a web sample application.

However, when called using the sample code downloaded from the playground or the example at https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/tests/Samples/Sample08_UseYourOwnData.cs, it always returns the phrase: "assistant: The requested information is not available in the retrieved data. Please try another query or topic." even though the returned message.AzureExtensionsContext.Messages contains some references.

I'm using package Azure.AI.OpenAI --version 1.0.0-beta.8.

All login data and references seem to be correct, service respond and also message.AzureExtensionsContext.Messages are filled.

Playground and sample web app created from Azure OpenAI Studio work well (unfortunately is written in Python so I can not copy from that), the problemy is only in the local api call.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,884 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.