mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #244] [MERGED] feat: add async and sync hybrid search index creation methods #257
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/244
Author: @JHSeo-git
Created: 8/12/2025
Status: ✅ Merged
Merged: 8/19/2025
Merged by: @dishaprakash
Base:
main← Head:add-apply-hybrid-search-index-in-vectorstore📝 Commits (6)
49a79ccfeat: add async and sync hybrid search index creation methodsf532396chore: update for test702d6ddtest: add hybrid search index related testsd69176drevert51fb40dfix: lintd11d308Merge branch 'main' into add-apply-hybrid-search-index-in-vectorstore📊 Changes
5 files changed (+206 additions, -5 deletions)
View changed files
📝
DEVELOPMENT.md(+1 -1)📝
langchain_postgres/v2/vectorstores.py(+18 -0)📝
pyproject.toml(+1 -0)📝
tests/unit_tests/v2/test_pg_vectorstore_index.py(+116 -3)📝
uv.lock(+70 -1)📄 Description
See #238 for details.
Added code to expose the functions (aapply_hybrid_search_index, apply_hybrid_search_index) for adding an index to the tsv column in hybrid search.
I also fixed minor typos in the existing test code for better readability.
langchain_postgres/v2/vectorstores.py: Added new index creation methodstests/unit_tests/v2/test_pg_vectorstore_index.py: Added comprehensive test coveragepyproject.toml: Updated test dependenciestests/utils.py: Minor updatesDEVELOPMENT.md: Minor updatesIt also includes changes to align test-related environment variable settings between
DEVELOPMENT.mdandutils.py.For testing, I initially attempted to use the existing dependency
psycopg, but on my current environment (not installed deps like libpq, MacBook Apple M4 Max), running with the existing dependency caused errors. To ensure compatibility across environments, I addedpsycopg[binary].psycopg error
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.