-
Notifications
You must be signed in to change notification settings - Fork 107
Comparing changes
Open a pull request
base repository: langchain-ai/langchain-postgres
base: langchain-postgres==0.0.15
head repository: langchain-ai/langchain-postgres
compare: langchain-postgres==0.0.16
- 10 commits
- 12 files changed
- 7 contributors
Commits on Jul 25, 2025
-
deps: add missing dependencies in
testgroup (#223)This PR adds missing dependencies to `pyproject.toml` test dependency group (used for local development). Added dependencies: - `codespell` - required to run `make spell_check` and `make spell_fix` scripts - `pytest-watcher` - required to run `make test_watch` - `greenlet` - without it, `make test` fails with error below. It was previously added in #161, but lost at some point. ``` ValueError: the greenlet library is required to use this function. No module named 'greenlet' ```
Configuration menu - View commit details
-
Copy full SHA for f6c3a5c - Browse repository at this point
Copy the full SHA f6c3a5cView commit details
Commits on Aug 11, 2025
-
fix : correct type checking against db column for embedding_column va…
Configuration menu - View commit details
-
Copy full SHA for 6148b10 - Browse repository at this point
Copy the full SHA 6148b10View commit details
Commits on Aug 19, 2025
-
docs: Add documentation for Hybrid Search (#245)
Adds documentation for hybrid search This PR adds: - A code snippet in the README - Section in the how-to guide on multiple scenarios the hybrid search config can be used in. The scenarios are - Creating a new table with the tsv column - Using a pre-existing table without the tsv column - Hybrid search only on specific similarity searches. - Applying hybrid search indexConfiguration menu - View commit details
-
Copy full SHA for 44d76c8 - Browse repository at this point
Copy the full SHA 44d76c8View commit details
Commits on Aug 20, 2025
-
feat: add async and sync hybrid search index creation methods (#244)
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. ```diff -DEFAULT_TABLE_ASYNC = "default_sync" ... +DEFAULT_TABLE_ASYNC = "default_async" ... ``` - `langchain_postgres/v2/vectorstores.py`: Added new index creation methods - `tests/unit_tests/v2/test_pg_vectorstore_index.py`: Added comprehensive test coverage - `pyproject.toml`: Updated test dependencies - `tests/utils.py`: Minor updates - `DEVELOPMENT.md`: Minor updates It also includes changes to align test-related environment variable settings between `DEVELOPMENT.md` and `utils.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 added `psycopg[binary]`. <details> <summary> psycopg error </summary> ```bash import_from_libpq() .venv/lib/python3.13/site-packages/psycopg/pq/__init__.py:108: in import_from_libpq raise ImportError( E ImportError: no pq wrapper available. E Attempts made: E - couldn't import psycopg 'c' implementation: No module named 'psycopg_c' ``` </details> --------- Co-authored-by: dishaprakash <57954147+dishaprakash@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 683efd7 - Browse repository at this point
Copy the full SHA 683efd7View commit details
Commits on Sep 17, 2025
-
chore: update PGVectorStore How to guide (#251)
This PR adds a clarification into the PGVectorStore How-To guide that the dense vector search is the primary search and the TSV based search is the secondary search.
Configuration menu - View commit details
-
Copy full SHA for 7fee427 - Browse repository at this point
Copy the full SHA 7fee427View commit details
Commits on Oct 1, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 70ba3f2 - Browse repository at this point
Copy the full SHA 70ba3f2View commit details
Commits on Oct 7, 2025
-
fix: Normalize scores in RRF ranking in hybrid search (#256)
Fixes Major Issue 1 in #234 --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
Configuration menu - View commit details
-
Copy full SHA for 2ac41ca - Browse repository at this point
Copy the full SHA 2ac41caView commit details
Commits on Oct 8, 2025
-
fix: Normalize results in wighted sum ranking (#255)
Fixes Major Issue 1 in #234 --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
Configuration menu - View commit details
-
Copy full SHA for f8de351 - Browse repository at this point
Copy the full SHA f8de351View commit details
Commits on Oct 10, 2025
-
fix: Fix hybrid search bugs (#257)
This PR fixes the 2nd Major issue in #234, related to Configuration and Querying Issues Issue breakdown: - **Inconsistent k Parameter:** For hybrid searches, the dense search LIMIT was tied to the final k parameter, while the sparse search used its own secondary_top_k. **Late Initialization of HybridSearchConfig:** The HybridSearchConfig was initialized after the k parameter was calculated, which could lead to incorrect behavior if the config was passed dynamically via `kwargs`. Overview of the changes: - 1. The __query_collection method now uses a separate `dense_limit` for the dense search query. If HybridSearchConfig is active, dense_limit is set to primary_top_k. For dense-only searches, dense_limit defaults to the final k value, preserving the existing behavior. 2. The hybrid_search_config is now initialized at the beginning of `__query_collection`, ensuring that any `kwargs` overrides are handled before `k` or `dense_limit` are calculated.
Configuration menu - View commit details
-
Copy full SHA for 396282f - Browse repository at this point
Copy the full SHA 396282fView commit details
Commits on Oct 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 01549d4 - Browse repository at this point
Copy the full SHA 01549d4View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff langchain-postgres==0.0.15...langchain-postgres==0.0.16