Skip to content

Commit 1cf1963

Browse files
authored
Update vector-search.md
Updated language and removed preview tag warning for HNSW
1 parent 680ab12 commit 1cf1963

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

articles/cosmos-db/mongodb/vcore/vector-search.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ You can create (Hierarchical Navigable Small World) indexes on M40 cluster tiers
6161
|`similarity` |string |Similarity metric to use with the index. Possible options are `COS` (cosine distance), `L2` (Euclidean distance), and `IP` (inner product). |
6262
|`dimensions` |integer |Number of dimensions for vector similarity. The maximum number of supported dimensions is `2000`. |
6363

64-
65-
> [!WARNING]
66-
> Using the HSNW vector index (preview) with large datasets can result in resource running out of memory, or reducing the performance of other operations running on your database. To reduce the chance of this happening, we recommend to:
67-
> - Only use HNSW indexes on a cluster tier of M40 or higher.
68-
> - Scale to a higher cluster tier or reduce the size of the database if your encounter errors.
69-
7064
### Perform a vector search with HNSW
7165
To perform a vector search, use the `$search` aggregation pipeline stage the query with the `cosmosSearch` operator.
7266
```javascript
@@ -88,6 +82,8 @@ To perform a vector search, use the `$search` aggregation pipeline stage the que
8882
|`efSearch` |integer |The size of the dynamic candidate list for search (`40` by default). A higher value provides better recall at the cost of speed. |
8983
|`k` |integer |The number of results to return. it should be less than or equal to `efSearch` |
9084

85+
Note that creating an HSNW index with large datasets can result in your Azure Cosmos DB for MongoDB vCore resource running out of memory, or can limit the performance of other operations running on your database. If you encounter such issues, these can be mitigated by scaling your resource to a higher cluster tier, or reducing the size of the dataset.
86+
9187
### Create an vector index using IVF
9288

9389
To create a vector index using the IVF (Inverted File) algorithm, use the following `createIndexes` template and set the `"kind"` paramter to `"vector-ivf"`:

0 commit comments

Comments
 (0)