[PR #75] [MERGED] Add transalor #151

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langchain-postgres/pull/75
Author: @pprados
Created: 6/20/2024
Status: Merged
Merged: 6/21/2024
Merged by: @eyurtsev

Base: mainHead: pprados/fix_translator


📝 Commits (3)

📊 Changes

5 files changed (+142 additions, -0 deletions)

View changed files

📝 langchain_postgres/__init__.py (+2 -0)
langchain_postgres/translator.py (+52 -0)
tests/unit_tests/query_constructors/__init__.py (+0 -0)
tests/unit_tests/query_constructors/test_pgvector.py (+87 -0)
📝 tests/unit_tests/test_imports.py (+1 -0)

📄 Description

The SelfQuery PGVectorTranslator is not correct. The operator is "eq" and not "$eq".
This patch implements a new version of PGVectorTranslator.

It's necessary to release a new version before accepting another PR in langchain core.


🔄 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/75 **Author:** [@pprados](https://github.com/pprados) **Created:** 6/20/2024 **Status:** ✅ Merged **Merged:** 6/21/2024 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `main` ← **Head:** `pprados/fix_translator` --- ### 📝 Commits (3) - [`5cdd988`](https://github.com/langchain-ai/langchain-postgres/commit/5cdd9880a9ee3f4e4077d92d4c24eef997a9ed41) Add transalor - [`1a4993a`](https://github.com/langchain-ai/langchain-postgres/commit/1a4993a3818fb8fdf0df85f65a6a3000e5b13c8e) Fix test imports - [`a3b7a4a`](https://github.com/langchain-ai/langchain-postgres/commit/a3b7a4ae68dc54829b6bc48ea06825f735bbb955) Add unit test for PGVectorTranslator ### 📊 Changes **5 files changed** (+142 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `langchain_postgres/__init__.py` (+2 -0) ➕ `langchain_postgres/translator.py` (+52 -0) ➕ `tests/unit_tests/query_constructors/__init__.py` (+0 -0) ➕ `tests/unit_tests/query_constructors/test_pgvector.py` (+87 -0) 📝 `tests/unit_tests/test_imports.py` (+1 -0) </details> ### 📄 Description The `SelfQuery PGVectorTranslator` is not correct. The operator is "eq" and not "$eq". This patch implements a new version of `PGVectorTranslator`. It's necessary to release a new version before accepting [another PR](https://github.com/langchain-ai/langchain/pull/23217) in langchain core. --- <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:16:46 -05:00
yindo closed this issue 2026-02-16 05:16:46 -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#151