Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k stars 4.6k forks source link

I Cant understand how can we enable managed identity for search and also enable vectorization #41928

Open SakibAliChoudhary opened 7 months ago

SakibAliChoudhary commented 7 months ago

Library name and version

Azure.OpenAI

Query/Question

I started with enabling managed identity for using your own data where i have attached a managed role to azure open ai. Based on the ref https://stackoverflow.com/questions/77946813/configurations-which-we-can-do-to-allow-the-use-of-managed-identity-for-azurecog.

Now i am getting a error of {"error": {"requestid": "Bogus id", "code": 400, "message": "Invalid AzureCognitiveSearch configuration detected: Call to get ACS index failed. Check you are using correct index, instance and api_key.\n"}}

Used some code as AzureCognitiveSearchChatExtensionConfiguration ExtensionConfig = new() { SearchEndpoint = new Uri(Environment.GetEnvironmentVariable("BogusSearch endpoint")), IndexName = Environment.GetEnvironmentVariable("Bogus Search name"), DocumentCount = 5, QueryType = AzureCognitiveSearchQueryType.VectorSemanticHybrid, SemanticConfiguration = Environment.GetEnvironmentVariable("Bogus Sementic config"), FieldMappingOptions = options, Filter = $"DocumentBlobName eq '{blobId}'", Strictness = 3, VectorizationSource = new OnYourDataDeploymentNameVectorizationSource("text-embedding-ada-002"), };

Environment

No response

jsquire commented 7 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Raveendra-Sharma commented 7 months ago

Hi @ShivangiReja I'm also facing the same issue, please let us know if there is any resolution.

ShivangiReja commented 7 months ago

@trrwilson, could you please assist @SakibAliChoudhary and @Raveendra-Sharma in enabling managed identity using AzureCognitiveSearchChatExtensionConfiguration in OpenAI?

SakibAliChoudhary commented 7 months ago

Thanks @ShivangiReja for your help. Will be waiting for your response @trrwilson.

github-actions[bot] commented 7 months ago

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

4rt3m1sx commented 6 months ago

Experiencing the same issue