mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #51] [MERGED] vectorstore: Fix in exists operator. Was working as null #136
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?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchain-postgres/pull/51
Author: @MartinGotelli
Created: 5/17/2024
Status: ✅ Merged
Merged: 5/17/2024
Merged by: @eyurtsev
Base:
main← Head:fix_exists_condition📝 Commits (1)
dd5dcc8Fix in exists operator. Was working as null📊 Changes
2 files changed (+5 additions, -5 deletions)
View changed files
📝
langchain_postgres/vectorstores.py(+1 -1)📝
tests/unit_tests/fixtures/filtering_test_cases.py(+4 -4)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.