[PR #217] [MERGED] Fixed support for VectorStore search filters with multiple $like/$ilike/$in/$nin on same column #240

Closed
opened 2026-02-16 05:17:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/217
Author: @CXmartins
Created: 6/13/2025
Status: Merged
Merged: 6/23/2025
Merged by: @averikitsch

Base: mainHead: main


📝 Commits (4)

  • bd53ecc added new test case
  • 997a310 Fixed async_vectostore filter function
  • 2e292f6 Added wildcards to the testcase value
  • 6bb304b moved comment to original position

📊 Changes

2 files changed (+38 additions, -31 deletions)

View changed files

📝 langchain_postgres/v2/async_vectorstore.py (+32 -30)
📝 tests/unit_tests/fixtures/metadata_filtering_data.py (+6 -1)

📄 Description

Fixed issue #216.

Pull request adds a filter test case that was failing and the fix for internal function _handle_field_filter.
The function fix is to add an unique identifier to the column names of operator in, nin, like and ilike


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langchain-postgres/pull/217 **Author:** [@CXmartins](https://github.com/CXmartins) **Created:** 6/13/2025 **Status:** ✅ Merged **Merged:** 6/23/2025 **Merged by:** [@averikitsch](https://github.com/averikitsch) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`bd53ecc`](https://github.com/langchain-ai/langchain-postgres/commit/bd53ecc129be3550be9778a430d71a793726b0a9) added new test case - [`997a310`](https://github.com/langchain-ai/langchain-postgres/commit/997a3100f4b2e619a7dbe8c46c982745c0a264e7) Fixed async_vectostore filter function - [`2e292f6`](https://github.com/langchain-ai/langchain-postgres/commit/2e292f6fb10fe80ab49f996731599b3f89ff8bc5) Added wildcards to the testcase value - [`6bb304b`](https://github.com/langchain-ai/langchain-postgres/commit/6bb304b7e437c90cd0db1297b87aaa79bba1650c) moved comment to original position ### 📊 Changes **2 files changed** (+38 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `langchain_postgres/v2/async_vectorstore.py` (+32 -30) 📝 `tests/unit_tests/fixtures/metadata_filtering_data.py` (+6 -1) </details> ### 📄 Description Fixed issue #216. Pull request adds a filter test case that was failing and the fix for internal function _handle_field_filter. The function fix is to add an unique identifier to the column names of operator in, nin, like and ilike --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 05:17:04 -05:00
yindo closed this issue 2026-02-16 05:17:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#240