-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add support for MongoDB Atlas $vectorSearch vector search #2825
Add support for MongoDB Atlas $vectorSearch vector search #2825
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -25,11 +27,7 @@ import { Document } from "../../document.js"; | |||
} |
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.
This comment flags a change in the code that explicitly accesses an environment variable via process.env
, and it should be reviewed by maintainers.
Seems fine, is there no SDK update required? |
Could you also please run |
Hey @jacoblee93 - I linted and formatted, hopefully it passes CI now. The changes here are compatible with the existing |
Thank you! |
@baileympearson I get this when running integration tests:
Do I need to upgrade something else? If so, can we add something to the docs with instructions? |
@jacoblee93 You must be using MongoDB 7.0 or later in Atlas - I've added a note to the documentation about this |
No backcompat is a bummer :( But thank you for the docs! Will merge with tonight's release. |
This PR is the JS equivalent of langchain-ai/langchain#11139.
This PR add support for the $vectorSearch stage in the MongoDB Atlas VectorStore. $vectorSearch was announced at MongoDB .local London.
Some notes:
main
.Same as with the Python implementation, this is a breaking change.