-
Notifications
You must be signed in to change notification settings - Fork 26
DOCSP-45048 - Vector search params #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d06ddf9
e615796
c4fec6a
162171b
206f9fd
d8366fd
a244df4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,68 @@ | ||||||
| To create a ``$vectorSearch`` pipeline stage, call the ``VectorSearch()`` method on a | ||||||
| ``PipelineStageDefinitionBuilder`` object. The ``VectorSearch()`` method accepts the | ||||||
| following parameters: | ||||||
|
|
||||||
| .. list-table:: | ||||||
| :header-rows: 1 | ||||||
| :widths: 20 80 | ||||||
|
|
||||||
| * - Parameter | ||||||
| - Description | ||||||
|
|
||||||
| * - ``field`` | ||||||
| - The field to perform the vector search on. | ||||||
|
|
||||||
| **Data type**: ``Expression<Func<TInput, TField>>`` | ||||||
|
|
||||||
| * - ``queryVector`` | ||||||
| - The encoded vector that will be matched with values from the database. | ||||||
| Although the data type of this parameter is ``QueryVector``, you can also pass an | ||||||
| array of floating-point numbers. | ||||||
|
||||||
| array of floating-point numbers. | |
| array of ``float`` numbers |
S: Helpful to say the data type explicitly.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question for tech reviewer: What index is used if this param is empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It defaults to "default".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be misleading to use
plot_embeddinghere andm => m.Embeddingin the code.Maybe worth adding the
EmbeddedMoviemodel for clarity.