mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
Support array comparisons #23
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 @eyurtsev on GitHub (Jun 10, 2024).
Define filters and semantics for array comparisons.
Feel free to use this PR as reference: https://github.com/langchain-ai/langchain-postgres/pull/59
Array comparisons may involve an either "all" or "any" condition.
Requirements
allvs.anyinOnly pick up work on this if you have and use postgresql
@jernkuan commented on GitHub (Jun 24, 2024):
Hi @eyurtsev
Made another pull request https://github.com/langchain-ai/langchain-postgres/pull/77 that would support both int, float, text.
Not the most optimal, but with postgresql even using raw sql statement i'm not sure whether there is a better way, since ?| support only an array of text and not numbers.
Also added support to run this on windows, as ProacatorEventLoop is not support on windows.