CosmosDB, Vector search, diskANN

Vladimir Nesterovsky 20 Reputation points
2024-06-02T19:55:06.3033333+00:00

Trying to experiment with vector search in cosmos db I get an exception:

Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0;

ActivityId: xxx; Reason: (Message: {"Errors":["Vector Indexing Policy's Index

Type::diskANN has been provided but the capability has not been enabled on your account. Please contact Azure Support [[

https:\/\/azure.microsoft.com\/support](https:\/\/azure.microsoft.com\/support)] to enable it."]}

ActivityId: xxx, Request URI:

/apps/xxx/services/xxx/partitions/xxx/replicas/xxx, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0,

Microsoft.Azure.Cosmos.Tracing.TraceData.ClientSideRequestStatisticsTraceDatum, Windows/10.0.22631

cosmos-netstandard-sdk/3.34.2);

How can I enable it?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,520 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sajeetharan 2,031 Reputation points Microsoft Employee
    2024-06-03T04:37:35.29+00:00

    You can follow the instructions here to enable this feature.

    Vector search for Azure Cosmos DB for NoSQL requires preview feature registration on the Features page of your Azure Cosmos DB . Follow the below steps to register:

    Navigate to your Azure Cosmos DB for NoSQL resource page.

    Select the "Features" pane under the "Settings" menu item.

    Select for “Vector Search in Azure Cosmos DB for NoSQL”.

    Read the description of the feature to confirm you want to enroll in the preview.

    Select "Enable" to enroll in the preview.