Toggle Menu
Prev Up Next

# `langchain_community.vectorstores.azure_cosmos_db`.CosmosDBVectorSearchType

class langchain_community.vectorstores.azure_cosmos_db.CosmosDBVectorSearchType(value)

  Cosmos DB Vector Search Type as enumerator.

  VECTOR_IVF = 'vector-ivf'

    IVF vector index

  VECTOR_HNSW = 'vector-hnsw'

    HNSW vector index

# Examples using CosmosDBVectorSearchType

- Set up the OpenAI Environment Variables

- To make the caching really obvious, lets use a slower model.