-
Notifications
You must be signed in to change notification settings - Fork 16.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
community: Add support for Upstash Vector #17012
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ytkimirti feel free to tag when pr is ready for review! |
Hey @baskaryan, the code and integration tests are ready for review. If everything is ok I will start filling up the docs. One question about dependencies, should I add |
@baskaryan bump |
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.
code looks good to me! no need to add as optional dependency
if helpful, you can run local formatting and linting with:
cd libs/community
make format
make lint
Thanks for the review, I will complete the docs and examples in a few days About the new integration tests, they need these environment variables, you can create them from here if needed UPSTASH_VECTOR_URL=your_upstash_vector_url
UPSTASH_VECTOR_TOKEN=your_upstash_vector_token |
Hello, @baskaryan! The pr is ready for merging. I've ran the integration tests locally and also tested the retriever API—everything seems to work. |
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.
Hey there! These integration tests will not work as-is in community. Can we:
- convert the integration tests into mocked unit tests
https://python.langchain.com/docs/contributing/testing#integration-tests
bump @efriis |
@baskaryan @efriis If it's not possible, we can remove the integration tests for now so we can merge this pr. What do you think about that? |
Update: We are currently adding support for metadata filtering. I will update this pr when the feature is shipped to the sdk |
closing for now and can reopen when that's in! |
## Description Adding `UpstashVectorStore` to utilize [Upstash Vector](https://upstash.com/docs/vector/overall/getstarted)! #17012 was opened to add Upstash Vector to langchain but was closed to wait for filtering. Now filtering is added to Upstash vector and we open a new PR. Additionally, [embedding feature](https://upstash.com/docs/vector/features/embeddingmodels) was added and we add this to our vectorstore aswell. ## Dependencies [upstash-vector](https://pypi.org/project/upstash-vector/) should be installed to use `UpstashVectorStore`. Didn't update dependencies because of [this comment in the previous PR](#17012 (review)). ## Tests Tests are added and they pass. Tests are naturally network bound since Upstash Vector is offered through an API. There was [a discussion in the previous PR about mocking the unittests](#17012 (review)). We didn't make changes to this end yet. We can update the tests if you can explain how the tests should be mocked. --------- Co-authored-by: ytkimirti <[email protected]> Co-authored-by: Bagatur <[email protected]> Co-authored-by: Bagatur <[email protected]>
This PR adds support for Upstash Vector database.