I get "Failed to create vector index. Request failed with status code 401" when attempting to create an index on a set of data in AI Studio

Timothy Rennie 5 Reputation points
2024-06-20T18:26:03.54+00:00

User's image

Azure AI Video Indexer
Azure AI Video Indexer
An Azure video analytics service that uses AI to extract actionable insights from stored videos.
68 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. William 620 Reputation points
    2024-06-21T01:57:24.4366667+00:00

    Hi @Timothy Rennie This error indicates an authentication problem during the index creation process in AI Studio. Here’s how you can resolve it:

    Check Permissions:

    Ensure you have the necessary permissions for the resources you’re accessing. For instance, confirm you have the "Storage Blob Data Contributor" role if using Blob Storage. Also, verify that your API key has the required permissions for the specific endpoint you’re calling.

    Deployment Name:

    To prevent potential issues, remove underscores from your deployment names.

    Document Content:

    Make sure all documents include embedded text. If documents contain images without embedded text, utilize the imageAction and OCRSkill to extract text for proper vectorization.

    Azure SQL Database:

    Configure the indexer to extract searchable data and optimize indexes based on Azure SQL Database recommendations.

    These steps should help you address the authentication issue and proceed with creating the vector index successfully.

    Search Service to AI Studio Index source causes "Failed to create Vector Index

    Additional Tip. If you’re coming from an Azure AI Studio chat playground deployment and encountering this issue, ensure semantic ranking is enabled under “Search management” in the portal.

    If this answer solves your issue, please vote for it so other community members know that this is a quality answer.

    0 comments No comments