Skip to content

Commit 3ad7654

Browse files
Merge pull request #253696 from jcodella/patch-8
Update vector-search.md
2 parents 205971c + b2a3e66 commit 3ad7654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ To perform a vector search, use the `$search` aggregation pipeline stage in a Mo
134134
```
135135
To retrieve the similarity score (`searchScore`) along with the documents found by the vector search, use the `$project` operator to include `searchScore` and rename it as `<custom_name_for_similarity_score>` in the results. Then the document is also projected as nested object. Note that the similarity score is calculated using the metric defined in the vector index.
136136

137-
### Query a vector index by using $search
137+
### Query vectors and vector distances (aka similarity scores) using $search"
138138

139139
Continuing with the last example, create another vector, `queryVector`. Vector search measures the distance between `queryVector` and the vectors in the `vectorContent` path of your documents. You can set the number of results that the search returns by setting the parameter `k`, which is set to `2` here.
140140

0 commit comments

Comments
 (0)