GithubHelp home page GithubHelp logo

[BUG] Azure.AI.OpenAI beta.12: AzureExtensionsContext.Messages doesn't return citations since Jan. 12th, 2024 about azure-sdk-for-net HOT 6 OPEN

freistli avatar freistli commented on May 25, 2024
[BUG] Azure.AI.OpenAI beta.12: AzureExtensionsContext.Messages doesn't return citations since Jan. 12th, 2024

from azure-sdk-for-net.

Comments (6)

LucGosso avatar LucGosso commented on May 25, 2024 1

Reproduction Steps, Complete example with azure search endpoints

` AzureCognitiveSearchChatExtensionConfiguration extensionConfig = new()
{
SearchEndpoint = new Uri(_configuration["AzureSearchServiceEndpoint"] + ""),
Authentication = new OnYourDataApiKeyAuthenticationOptions(_configuration["AzureSearchServiceApiKey"]),
IndexName = _configuration["AzureSearchIndex"],
DocumentCount = 10,
//Key = _configuration["AzureSearchServiceApiKey"],
/FieldMappingOptions = new AzureCognitiveSearchIndexFieldMappingOptions()
{
ContentFieldNames = { "content" },
TitleFieldName = "metadata_storage_name",
UrlFieldName = "url",
FilepathFieldName = "metadata_storage_name"
}
/
};
var chatCompletionsOptions = new ChatCompletionsOptions()
{
DeploymentName = _configuration["AzureOpenAiChatGptDeployment"],
Messages =
{
//new ChatRequestSystemMessage(promptTemplate),
new ChatRequestUserMessage(question),
},
// The addition of AzureChatExtensionsOptions enables the use of Azure OpenAI capabilities that add to
// the behavior of Chat Completions, here the "using your own data" feature to supplement the context
// with information from an Azure AI Search resource with documents that have been indexed.
AzureExtensionsOptions = new AzureChatExtensionsOptions()
{
Extensions = { extensionConfig }
}
};

Response response = await client.GetChatCompletionsAsync(chatCompletionsOptions);

ChatResponseMessage responseMessage = response.Value.Choices[0].Message;

if (responseMessage.AzureExtensionsContext.Messages?.Count > 0)
{
...
}
else
{
Console.WriteLine("No citations or other information.");
}
`

from azure-sdk-for-net.

thesnake666 avatar thesnake666 commented on May 25, 2024

Yes, confirm, the result is ok for content but the citations field is null

from azure-sdk-for-net.

github-actions avatar github-actions commented on May 25, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

from azure-sdk-for-net.

github-actions avatar github-actions commented on May 25, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

from azure-sdk-for-net.

andrej-melicher avatar andrej-melicher commented on May 25, 2024

same issue here, as seen on debug screenshot

image

when using REST API in Postman against same resource, the response is fine, including citations

image

from azure-sdk-for-net.

freistli avatar freistli commented on May 25, 2024

The issue was auto recovered just now. I can get citations again with the same .Net nuget.

Even though, the .Net version still needs to fix this as REST API or Python client were not impacted by the same issue at the same time even AOAI experienced some unknown behavior changes in past 24 hours.

We don't know when AOAI runs into the same situation and impacts .Net nuget again.

The same suggestion to #41138

Thanks.

from azure-sdk-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.