microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.31k stars 3.13k forks source link

.Net: Bug: AzureCosmosDBNoSQLMemoryStore - CreateCollectionAsync results in 400 error #7584

Open westdavidr opened 1 month ago

westdavidr commented 1 month ago

Describe the bug Using AzureCosmosDBNoSQLMemoryStore, the method CreateCollectionAsync results in a 400 error:

"Vector Indexing is not supported for shared throughput offer"

To Reproduce Steps to reproduce the behavior: Create AzureCosmosDBNoSQLMemoryStore instance and call CreateCollectionAsync

Expected behavior Cosmos Collection should be created with proper vector support enabled

Platform

westdavidr commented 1 month ago

I'll add that this is attempting to create a new Container in an existing DB

dmytrostruk commented 1 month ago

@westdavidr Thanks for reporting this issue. Based on error message, it looks like you are facing a limitation from your created Azure CosmosDB for NoSQL database with shared throughput: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/vector-search#current-limits-and-constraints image

In order to resolve it, I think you should uncheck following setting: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-provision-database-throughput?tabs=dotnetv2#provision-throughput-using-azure-portal image

Let us know if this helps to resolve your problem. Thanks a lot!