PGVector deprecated create_filter_clause uses incorrect method. Can't filter by OR or AND conditions #20445
Closed
5 tasks done
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: postgres
Related to postgres integrations
Ɑ: vector store
Related to vector store module
Checked other resources
Example Code
This raises:
Error Message and Stack Trace (if applicable)
Description
While using PGVector without the newer jsonb format one can filter using the _create_filter_clause_deprecated method. That allows filtering with EQ, NIN, IN, etc. but also with OR and AND, the problem with this two is that the code should be calling itself but it calls the newer _create_filter_clause that does not support the same method signature and raises an error.
Expected Result:
When the PGVector is created without the usejsonb flag in True, should allow to filter with OR and AND conditions
Actual Result:
Adding an OR or AND filter without the usejsonb flag ends in an error raising
System Info
langchain==0.1.14
langchain-community==0.0.31
langchain-core==0.1.40
langchain-openai==0.0.8
langchain-text-splitters==0.0.1
The text was updated successfully, but these errors were encountered: