Skip to content
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 Upstash Vector Store support #2004

Merged
merged 6 commits into from
May 30, 2024
Merged

Add Upstash Vector Store support #2004

merged 6 commits into from
May 30, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request adds support for using Upstash as a Vector Store in the codebase. It includes the following changes:

  • Added UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to the list of default environment variables.

  • Added upstash-vector package as a dependency with version 0.4.0 in pyproject.toml.

  • Created UpstashSearchComponent for implementing a Vector Store using Upstash in src/backend/base/langflow/components/vectorsearch/UpstashSearch.py.

  • Created UpstashVectorStoreComponent for implementing a Vector Store using Upstash in src/backend/base/langflow/components/vectorstores/Upstash.py.

  • Added UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to the list of variables to get from the environment in src/backend/base/langflow/services/settings/constants.py.

…TOKEN to the list of default environment variables

pyproject.toml: add upstash-vector package as a dependency with version 0.4.0
src/backend/base/langflow/components/vectorsearch/UpstashSearch.py: create UpstashSearchComponent for implementing a Vector Store using Upstash
src/backend/base/langflow/components/vectorstores/Upstash.py: create UpstashVectorStoreComponent for implementing a Vector Store using Upstash
src/backend/base/langflow/services/settings/constants.py: add UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to the list of variables to get from the environment
Copy link

vercel bot commented May 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 5:37pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request python Pull requests that update Python code labels May 29, 2024
…ey' parameters in UpstashSearchComponent to enhance search functionality

♻️ (Upstash.py): Refactor UpstashVectorStoreComponent to include 'text_key' parameter for consistency and improved functionality
… readability and maintainability by restructuring the instantiation of UpstashVectorStore instances based on conditions and adding support for adding documents directly to the instance.
@ogabrielluiz ogabrielluiz merged commit 4c113d5 into dev May 30, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant