Skip to content

Commit 74b0cf5

Browse files
committed
bicep properties as table
1 parent 5ee699a commit 74b0cf5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/cosmos-db/quickstart-vector-store-nodejs.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,14 @@ The distance function is set in the **vector embedding policy** when creating th
428428
429429
---
430430
431-
This Bicep code defines an Azure Cosmos DB container configuration for storing hotel documents with vector search capabilities. The `partitionKeyPaths` specifies that documents are partitioned by `HotelId` for distributed storage. The `indexingPolicy` configures automatic indexing on all document properties (/*) except the system `_etag` field and the `DescriptionVector` array to optimize write performance—vector fields don't need standard indexing because they use a specialized `vectorIndexes` configuration instead. The `vectorIndexes` section creates either a DiskANN or quantizedFlat index on the `/DescriptionVector` path for efficient similarity searches. Finally, the `vectorEmbeddingPolicy` defines the vector field's characteristics: `float32` data type with 1536 dimensions (matching the `text-embedding-3-small` model output) and cosine as the distance function to measure similarity between vectors during queries.
431+
This Bicep code defines an Azure Cosmos DB container configuration for storing hotel documents with vector search capabilities.
432+
433+
| Property | Description |
434+
|----------|-------------|
435+
| `partitionKeyPaths` | Partitions documents by `HotelId` for distributed storage. |
436+
| `indexingPolicy` | Configures automatic indexing on all document properties (`/*`) except the system `_etag` field and the `DescriptionVector` array to optimize write performance. Vector fields don't need standard indexing because they use a specialized `vectorIndexes` configuration instead. |
437+
| `vectorIndexes` | Creates either a DiskANN or quantizedFlat index on the `/DescriptionVector` path for efficient similarity searches. |
438+
| `vectorEmbeddingPolicy` | Defines the vector field's characteristics: `float32` data type with 1536 dimensions (matching the `text-embedding-3-small` model output) and cosine as the distance function to measure similarity between vectors during queries. |
432439
433440
## Interpret similarity scores
434441

0 commit comments

Comments
 (0)