mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #75] [MERGED] Add transalor #151
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/75
Author: @pprados
Created: 6/20/2024
Status: ✅ Merged
Merged: 6/21/2024
Merged by: @eyurtsev
Base:
main← Head:pprados/fix_translator📝 Commits (3)
5cdd988Add transalor1a4993aFix test importsa3b7a4aAdd unit test for PGVectorTranslator📊 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 PGVectorTranslatoris 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.