Skip to content

Fixed support for VectorStore search filters with multiple $like/$ilike/$in/$nin on same column #217

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

CXmartins
Copy link

Fixed issue #216.

Pull request adds a filter test case that was failing and the fix for internal function _handle_field_filter.
The function fix is to add an unique identifier to the column names of operator in, nin, like and ilike

Copy link
Collaborator

@averikitsch averikitsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@@ -303,7 +303,8 @@ async def aadd_embeddings(
values_stmt = "VALUES (:langchain_id, :content, :embedding"

if not embedding and can_inline_embed:
values_stmt = f"VALUES (:langchain_id, :content, {self.embedding_service.embed_query_inline(content)}" # type: ignore
# type: ignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the comment back to the original location in order for the lint to pass?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants