langchain-ai / langchain-postgres

LangChain abstractions backed by Postgres Backend
MIT License
134 stars 48 forks source link

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

Closed MartinGotelli closed 6 months ago

MartinGotelli commented 6 months 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 6 months ago

Thanks @MartinGotelli