How to Vector Search from Cosmos Using Python and Azure Cosmos DB

#6
by awacke1 - opened
Owner
  1. In your Azure Cosmos DB Account, go under Settings, then Features and turn on Feature Vector Search for NoSQL API (preview):

image.png

  1. Check the spec: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/vector-search

3, Using sql run your first Vector Index search:

SELECT TOP 10
c.document, c.content, VectorDistance(c.contentVector, [1,2,3]) as SimilarityScore
FROM c
ORDER BY VectorDistance(c.contentVector, [1,2,3])

  1. Demo sample of results:

image.png

Sign up or log in to comment