Open santiagogun opened 3 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.
Any update here? I am running into exact same issue. Azure Search data source works in Chat playground but returns "The requested information is not found in the retrieved data. Please try another query or topic." when called from the app using the SDK.
@santiagogun I see you marked the issue as fixed. Can you please help me understand how this was fixed?
Hi @santiagogun , I ran into the same issue, can you help me resolve it please?
Change:
ChatCompletion completion = chatClient.CompleteChat(
new List<ChatMessage>()
{
new UserChatMessage(chatMessage)
}
);
To:
ChatCompletion completion = chatClient.CompleteChat(
new List<ChatMessage>()
{
new UserChatMessage(chatMessage)
},
options
);
Library name and version
Azure.AI.OpenAI" Version="2.0.0-beta.2"
Query/Question
Hello, so I am trying to call the OpenAI client while using AzureAISearch as a Data source. The problem I am having is that the resource does not seem to be used whenever I call OpenAI and the response given by it is that it does not has any information on the topic. In the Chat playground I am able to make this part work and it properly gives me an answer surrounding the topic fed to the LLM by AzureAISearch.
Basically, the OpenAIClient works properly but I cannot get answers from the Data source. It is also important to note that I have tried the code with API keys, and it still does not work. I also tried this code using the sample given in the Chat playground step by step, and still nothing. This is how my code is looking right now.
and I am including all the packages shown in the sample.
Environment
I am running this in
.NET 8.0
and in anAzure function