langchain-ai / langchain-postgres

LangChain abstractions backed by Postgres Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support array comparisons

eyurtsev opened this issue · comments

Define filters and semantics for array comparisons.

Feel free to use this PR as reference: #59

Array comparisons may involve an either "all" or "any" condition.

Requirements

  • Define a clear API to allow swapping between all vs. any
  • Do not break existing ability to do a membership check with in

Only pick up work on this if you have and use postgresql

Hi @eyurtsev

Made another pull request #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.