@@ -52,11 +52,17 @@ method accepts the following parameters:
52
52
- ``options``: *(Optional)* A set of options that you can use to configure the
53
53
vector search query
54
54
55
- Vector Search Example
56
- ~~~~~~~~~~~~~~~~~~~~~
55
+ Basic Vector Search Example
56
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
57
57
58
- The following example performs an Atlas Vector Search query on the ``plot_embedding``
59
- vector field and prints the ``title`` value of the first five results:
58
+ This example runs an Atlas Vector Search query that performs
59
+ the following actions:
60
+
61
+ - Queries the ``plot_embedding`` vector field.
62
+ - Limits the results to ``5`` documents.
63
+ - Specifies an Approximate Nearest Neighbor (ANN) vector search that considers
64
+ ``150`` candidates. To learn more about ANN searches, see :atlas:`ANN Search </atlas-vector-search/vector-search-stage/#ann-search>`
65
+ in the MongoDB Atlas documentation.
60
66
61
67
.. io-code-block::
62
68
@@ -82,9 +88,13 @@ vector field and prints the ``title`` value of the first five results:
82
88
``Double`` instances. However, we recommend that you use the
83
89
``BinaryVector`` type to improve storage efficiency.
84
90
85
- The following example shows how to run the aggregation and print
86
- the vector search meta-score from the result of the preceding
87
- aggregation pipeline:
91
+ Vector Search Score Example
92
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
93
+
94
+ The following example shows how to run same vector search
95
+ query as the preceding example and print the documents' vector search
96
+ meta-score. This score represents the relevance of each
97
+ document to the query vector:
88
98
89
99
.. io-code-block::
90
100
0 commit comments