Back to Chatgpt Retrieval Plugin

Azure Cosmos DB

docs/providers/azurecosmosdb/setup.md

latest2.1 KB
Original Source

Azure Cosmos DB

Azure Cosmos DB Azure Cosmos DB is a fully managed NoSQL and relational database for modern app development. Using Azure Cosmos DB for MongoDB vCore, you can store vector embeddings in your documents and perform vector similarity search on a fully managed MongoDB-compatible database service.

Learn more about Azure Cosmos DB for MongoDB vCore here. If you don't have an Azure account, you can start setting one up here.

Environment variables

NameRequiredDescriptionDefault
DATASTOREYesDatastore name, set to azurecosmosdb
BEARER_TOKENYesSecret token
OPENAI_API_KEYYesOpenAI API key
AZCOSMOS_APIYesName of the API you're connecting to. Currently supported mongo-vcore
AZCOSMOS_CONNSTRYesThe connection string to your account.
AZCOSMOS_DATABASE_NAMEYesThe database where the data is stored/queried
AZCOSMOS_CONTAINER_NAMEYesThe container where the data is stored/queried

Indexing

On first insert, the datastore will create the collection and index if necessary on the field embedding. Currently hybrid search is not yet supported.