mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
Could you clarify why the "contains" operator is not implemented? #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @artefactop on GitHub (May 16, 2024).
Hi, we want to migrate from
langchain_communityand we are using the "contains" operator but is not implemented here.Is there any reason?
If not, do you have plan to implement it?
@eyurtsev commented on GitHub (May 17, 2024):
The community implementation consists of two implementations:
containsoperator. This version is also buggy as it casts things into text.You're free to contribute functionality for this!
What I'd be looking for are clear semantics for how the operator works together with complete test cases.
Possible types are for the field: None, str, float, int, List[float], List[int], List[str]
You can reference this recent PR to see how to go about doing that: https://github.com/langchain-ai/langchain-postgres/pull/40
@artefactop commented on GitHub (May 17, 2024):
Thanks @eyurtsev ! We'll definitely take a look at reviewing the implementation details you provided.