Skip to content

Commit 7bfb7a6

Browse files
committed
links and fix bson vector code ex
1 parent f4240e2 commit 7bfb7a6

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

source/fundamentals/atlas-vector-search.txt

+16-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,19 @@ use as a query vector:
7373
:end-before: end-binary-vector
7474
:dedent:
7575

76+
You can also deserialize your query vector back to a BSON vector by using
77+
the ``NewVectorFromBinary()`` method:
78+
79+
.. literalinclude:: /includes/fundamentals/code-snippets/vector-search.go
80+
:language: go
81+
:start-after: start-convert-back-vector
82+
:end-before: end-convert-back-vector
83+
:dedent:
84+
7685
.. tip:: Query Vector Type
7786

7887
The preceding example creates an instance of a BSON binary vector to
79-
serve as the query vector, but you can also use a ``float`` or ``double``
88+
serve as the query vector, but you can also use a BSON ``double``
8089
array. However, we recommend that you use a BSON binary vector to improve
8190
storage efficiency.
8291

@@ -101,9 +110,14 @@ Additional Information
101110
----------------------
102111

103112
To learn more about Atlas Vector Search, see the :atlas:`Atlas Vector Search
104-
</atlas-vector-search/vector-search-overview/>` guide in
113+
</atlas-vector-search/vector-search-overview/>` guides in
105114
the MongoDB Atlas documentation.
106115

116+
To learn more about the syntax of the ``$vectorSearch`` pipeline stage,
117+
see the Syntax and Fields sections of the
118+
:atlas:`Create and Run Queries </atlas-vector-search/vector-search-stage/#syntax>`
119+
guide in the Atlas Vector Search section of the MongoDB Atlas documentation.
120+
107121
API Documentation
108122
~~~~~~~~~~~~~~~~~
109123

0 commit comments

Comments
 (0)