-
-
Notifications
You must be signed in to change notification settings - Fork 514
Documentation for Vector Search #2846
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
base: 2.13.x
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
Adds documentation for using Vector Search with Doctrine MongoDB ODM, including a new cookbook tutorial and clarifies index requirements in stage reference docs.
- Adds a comprehensive vector search cookbook with end-to-end example.
- Inserts notes in aggregation stage reference about required search/vector search indexes.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
File | Description |
---|---|
docs/en/reference/aggregation-stage-reference.rst | Adds notes about required indexes for $search and $vectorSearch stages. |
docs/en/cookbook/vector-search.rst | New tutorial covering embedding generation, model definition, indexing, and querying. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
docs/en/cookbook/vector-search.rst
Outdated
->queryVector(self::getVector()) | ||
->filter($qb->expr()->field('published')->equals(true)) |
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.
The example references self::getVector() (undefined in the tutorial) and $qb (never defined). Use a concrete vector variable (e.g., $doc1->voyage3Vector) and replace the filter with a direct expression array, e.g. ->filter(['published' => true]).
->queryVector(self::getVector()) | |
->filter($qb->expr()->field('published')->equals(true)) | |
->queryVector($vectors) | |
->filter(['published' => true]) |
Copilot uses AI. Check for mistakes.
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.
The suggestion is incorrect, even if I find it interesting.
Summary
Add a tutorial to use Vector Search with an embedding model.