-
Notifications
You must be signed in to change notification settings - Fork 7
DOCSP-49759: Vector search index #33
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
DOCSP-49759: Vector search index #33
Conversation
✅ Deploy Preview for docs-django ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
LGTM! I would be consistent about using the full Atlas Vector Search product name, as I've been told by a PM that there is sometimes naming confusion from customers.
source/model-data/indexes.txt
Outdated
|
||
.. _django-indexes-vector-search: | ||
|
||
Vector Search Indexes |
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.
Vector Search Indexes | |
Atlas Vector Search Indexes |
S: I've gotten guidance from PMs to include the full product name. Also, to be consistent with the above Atlas Search section.
source/model-data/indexes.txt
Outdated
Vector Search Indexes | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Vector Search indexes specify the behavior of an Atlas Vector Search, which allows |
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.
Vector Search indexes specify the behavior of an Atlas Vector Search, which allows | |
Atlas Vector Search indexes allow |
S: full product name and edit bc it seems duplicative to say AVS twice
source/model-data/indexes.txt
Outdated
You can integrate vector search with full-text search queries and AI frameworks to | ||
support a range of use cases. | ||
|
||
To create a Vector Search index, assign the ``indexes`` option in your model's |
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.
To create a Vector Search index, assign the ``indexes`` option in your model's | |
To create an Atlas Vector Search index, assign the ``indexes`` option in your model's |
S: I would lowercase "vector search" or include full product name
source/model-data/indexes.txt
Outdated
``Meta`` class to a ``VectorSearchIndex`` object. Pass the following arguments to the | ||
``VectorSearchIndex()`` constructor: | ||
|
||
- ``name``: *(Optional)* The name of your Vector Search index. If you do not |
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.
- ``name``: *(Optional)* The name of your Vector Search index. If you do not | |
- ``name``: *(Optional)* The name of your Atlas Vector Search index. If you do not |
S: lowercase or full product name
source/model-data/indexes.txt
Outdated
of values that assigns functions to individual vector fields. | ||
|
||
The following example updates the ``Recipe`` model's ``Meta`` class to create | ||
a Vector Search index named ``"vector_search_idx"`` on the ``ratings`` vector field |
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.
a Vector Search index named ``"vector_search_idx"`` on the ``ratings`` vector field | |
an Atlas Vector Search index named ``"vector_search_idx"`` on the ``ratings`` vector field |
source/model-data/indexes.txt
Outdated
|
||
.. tip:: | ||
|
||
To learn more about Vector Search queries and indexes, see the following resources: |
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.
To learn more about Vector Search queries and indexes, see the following resources: | |
To learn more about Atlas Vector Search queries and indexes, see the following resources: |
source/model-data/indexes.txt
Outdated
- ``name``: *(Optional)* The name of your Atlas Vector Search index. If you do not | ||
specify this argument, {+framework+} automatically generates an index name. | ||
- ``fields``: The fields you want to index. At least one must be a vector | ||
field, represented by an array of ``FloatField`` or ``IntegerField`` values and an |
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.
"and an array size" -> "with a size"
(It would be really helpful to get intersphinx working to https://django-mongodb-backend.readthedocs.io/ so you can have size link to ArrayField.size) If you need help, let me know.
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.
Unfortunately additional changes to the intersphinx links are stalled, I can't configure it myself - the docs platform team does that - and they have some higher priority work at the moment. I added a link to the API docs using the source constant instead
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.
LGTM pending @timgraham comment
* DOCSP-49759: Vector search index * edits * LM feedback * fix * link * fix link (cherry picked from commit 794ab48)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-49759
Staging Links
Self-Review Checklist