-
Notifications
You must be signed in to change notification settings - Fork 4.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
feat: Add OpenSearch VectorStore Component with Ingest and Search Capabilities #3799
Conversation
Hi! I'm autofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests. I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
a0725e7
to
e44479f
Compare
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.
Looks awesome, thanks for this. Couple questions around the search functionality
src/backend/base/langflow/components/vectorstores/OpenSearch.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/vectorstores/OpenSearch.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/vectorstores/OpenSearch.py
Outdated
Show resolved
Hide resolved
if query: | ||
search_type = self.search_type.lower() | ||
if search_type == "similarity": | ||
results = vector_store.similarity_search_with_score(query, **search_kwargs) |
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.
I don't believe this should be the default. Langchain's pattern is to handle three main types: similarity
, similarity_score_threshold
, and mmr
. The second handles the score
.
Unless there's a particular difference using OpenSearch, is there any reason we can't use the default search impl?
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.
It was wrong, I also fixed it to match the default implementation..
src/backend/base/langflow/components/vectorstores/OpenSearch.py
Outdated
Show resolved
Hide resolved
src/backend/base/langflow/components/vectorstores/OpenSearch.py
Outdated
Show resolved
Hide resolved
…ing search method
…ing search method
This PR introduces a new OpenSearch VectorStore component that enables data ingestion and search functionalities within our system.
Fixes #3735
Key features include: