Azure OpenAI On your data , the AI search custom skillset created by ai studio use key based authentication instead of managed identity based

Puneet Jain 20 Reputation points Microsoft Employee
2024-05-13T11:31:24.6733333+00:00

While trying to update the connection-string for blob storage account in azure ai search service custom skillset which is created by azure ai studio to chunk the documents into smaller pieces, I am getting an error stating:

"Account URL must be string"

The custom skillset calls the following API :

https://XXX.openai.azure.com/openai/preprocessing-jobs?api-version=2023-03-31-preview

{ "@odata.context": "https://XXX.search.windows.net/$metadata#skillsets/$entity", "@odata.etag": "\"0x8DBF6FC3E7A5DE7\"", "name": "openai-chat-skillset", "description": null, "skills": [ { "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill", "name": "openai-chat-skillset", "description": null, "context": "/document/content", "uri": "https://XXX.openai.azure.com/openai/preprocessing-jobs?api-version=2023-03-31-preview", "httpMethod": "POST", "timeout": "PT1M", "batchSize": 10, "degreeOfParallelism": 10, "inputs": [ { "name": "document_id", "source": "/document/document_id" }, { "name": "filename", "source": "/document/filename" }, { "name": "fieldname", "source": "='content'" }, { "name": "text", "source": "/document/content" }, { "name": "url", "source": "/document/url" } ], "outputs": [ { "name": "recordId", "targetName": "recordId" } ], "httpHeaders": { "original_request_id": "openai-chat", "original_internal_id": "original_internal_id", "num_tokens": "1024", "api-key": "API_KEY", "connection_string": "BlobEndpoint=https://XXX.blob.core.windows.net/;SharedAccessSignature=?...", "container_name": "openai-chat-chunks" } } ], "cognitiveServices": null, "knowledgeStore": null, "indexProjections": null, "encryptionKey": null }
Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
757 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,303 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 18,871 Reputation points
    2024-05-20T06:51:01.49+00:00

    @Puneet Jain Glad that you were able to resolve your issue and I appreciate your effort in sharing the solution.

    Your contribution will undoubtedly assist others facing similar challenges.

    As the [Microsoft Q&A community follows a policy where the question author cannot accept their own answer] {https://learn.microsoft.com/en-us/answers/support/accept-answer}, I've reposted your solution. 

    Feel free to consider "Accepting" the answer if you find it suitable.

    Resolution- Issue was resolved by modifying the httpHeaders in the custom skillset:

     and then change connection-string to "ResourceId = /" format and add storage-endpoint field. 

    Reference- https://learn.microsoft.com/en-us/azure/search/cognitive-search-custom-skill-interface

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful