You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| **Cosine** (default) | 0.0 to 1.0 | Higher scores (closer to 1.0) indicate greater similarity | General text similarity, Azure OpenAI embeddings (used in this quickstart) |
369
369
| **Euclidean** (L2) | 0.0 to ∞ | Lower = more similar | Spatial data, when magnitude matters |
370
370
| **Dot Product** | -∞ to +∞ | Higher = more similar | When vector magnitudes are normalized |
@@ -465,7 +465,7 @@ The distance function is set in the **vector embedding policy** when creating th
465
465
This Bicep code defines an Azure Cosmos DB container configuration for storing hotel documents with vector search capabilities.
466
466
467
467
| Property | Description |
468
-
|----------|-------------|
468
+
|--- | ---|
469
469
| `partitionKeyPaths` | Partitions documents by `HotelId` for distributed storage. |
470
470
| `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. |
471
471
|`vectorIndexes`| Creates either a DiskANN or quantizedFlat index on the `/DescriptionVector` path for efficient similarity searches. |
0 commit comments