langchain-ai / langchain-postgres

LangChain abstractions backed by Postgres Backend
MIT License
66 stars 22 forks source link

vectorstore: Fix in exists operator. Was working as null #51

Closed MartinGotelli closed 1 month ago

MartinGotelli commented 1 month ago

So... yeah I f***ed up. But this is the fix.

The $exists was working as the $null, but the rename implies also changing how the bool value is interpreted:

$exists: True (there is a tag, I don't care the value) $exists: False (no tag in there)

ref: https://github.com/langchain-ai/langchain-postgres/pull/40

eyurtsev commented 1 month ago

Thanks @MartinGotelli