Skip to content

Commit aed1a57

Browse files
committed
RR edits
1 parent dc66801 commit aed1a57

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/fundamentals/atlas-vector-search.txt

+12-7
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,30 @@ search query.
6767

6868
The following sections demonstrate how to create a BSON binary vector
6969
for your query vector and how to use your vector search index to run a
70-
vector search query on the ``plot_embedding`` field.
70+
vector search query by using the ``plot_embedding`` field.
7171

7272
Create a BSON Binary Vector
7373
~~~~~~~~~~~~~~~~~~~~~~~~~~~
7474

75-
You can create a 1536 dimensional vector to use as the query vector
76-
for you vector search query on the ``plot_embedding`` field.
75+
In this example, you can create a 1536 dimensional vector to use as the query
76+
vector for your vector search query on the ``plot_embedding`` field.
77+
The query searches the ``plot_embedding`` field by using a vector
78+
embedding for the string "time travel".
7779

78-
The following example shows how to create a BSON binary vector that you can
79-
use as the query vector:
80+
The following example shows how to translate this vector embedding to a BSON
81+
binary vector that you can use as the query vector:
8082

8183
.. literalinclude:: /includes/fundamentals/code-snippets/vectorSearchQuery.go
8284
:language: go
8385
:start-after: start-binary-vector
8486
:end-before: end-binary-vector
8587
:dedent:
8688

87-
You can also deserialize your query vector back to a BSON vector by using
88-
the ``NewVectorFromBinary()`` method:
89+
If you need to access a slice of the original vector, you can also deserialize
90+
your query vector back to a BSON vector.
91+
92+
The following example shows how to convert the query vector from a BSON binary
93+
vector to a BSON vector by using the ``NewVectorFromBinary()`` method:
8994

9095
.. literalinclude:: /includes/fundamentals/code-snippets/vectorSearchQuery.go
9196
:language: go

0 commit comments

Comments
 (0)