Comments (6)
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.
Yes, confirm, the result is ok for content but the citations field is null
from azure-sdk-for-net.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
from azure-sdk-for-net.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
from azure-sdk-for-net.
same issue here, as seen on debug screenshot
when using REST API in Postman against same resource, the response is fine, including citations
from azure-sdk-for-net.
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)
- [Question]MetaData when adding AzureCognitiveSearchChatExtensionConfiguration option vector option HOT 2
- external chat that sends and receives messages from Teams channel with Azure Communication Services HOT 1
- ClientModel: Review Azure.Core 2.0 PR prior to final ClientModel release HOT 1
- Support pagination for CostManagement Query Usage HOT 3
- [FEATURE REQ] Add link/docs on Azure SDK instrumentation to otel dotnet contrib repo
- Test Improvements for Monitor Libraries
- [FEATURE REQ] Support SDK generation in CI pipeline for the services migrated from Swagger to TypeSpec HOT 1
- [BUG] BCL AsyncInterfaces runtime error on upgrade - Azure.Monitor.OpenTelemetry.AspNetCore 1.1.0 HOT 6
- [QUERY] Asynchronous operations failing unexpectedly HOT 4
- [BUG] EventHubListener causes message lost in shutdown HOT 11
- [FEATURE REQ]: Support passing the fully qualified name to the service bus client without having to trim it HOT 1
- [QUERY] Use MangedIdentity to access Azure SQL Server. Microsoft.Data.SqlClient.SqlException (0x80131904): The operation was canceled. HOT 1
- Looking for a slightly more detailed explanation of blob authorization HOT 5
- [BUG] Azure.Storage.Blobs SDK considers &spr=http,https as invalid SasProtocol HOT 2
- [QUERY] Why isn't there a AddClient overload that accepts an async factory? HOT 3
- [ContainerApp] Create Container app failed for accessing ACR with user identity HOT 1
- [BUG] Serialization Issue caused by MapsAddress.get_BoundingBox() HOT 1
- [BUG] Azure.Messaging.ServiceBus Version 7.17.x Causing High Request Rates, Performance Issues, and Escalating Billing Costs HOT 4
- [QUERY] Need to filter out Blob response using SDK
- [BUG] error CS0426: The type name 'Create' does not exist in the type 'ServiceClient' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.