@@ -73,10 +73,19 @@ use as a query vector:
73
73
:end-before: end-binary-vector
74
74
:dedent:
75
75
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
+
76
85
.. tip:: Query Vector Type
77
86
78
87
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``
80
89
array. However, we recommend that you use a BSON binary vector to improve
81
90
storage efficiency.
82
91
@@ -101,9 +110,14 @@ Additional Information
101
110
----------------------
102
111
103
112
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
105
114
the MongoDB Atlas documentation.
106
115
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
+
107
121
API Documentation
108
122
~~~~~~~~~~~~~~~~~
109
123
0 commit comments