mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
[PR #256] [MERGED] fix: Normalize scores in RRF ranking in hybrid search #262
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/256
Author: @dishaprakash
Created: 10/1/2025
Status: ✅ Merged
Merged: 10/7/2025
Merged by: @averikitsch
Base:
main← Head:rrf-bug-fix📝 Commits (5)
e74cdb1fix: Normalize scores in RRF ranking in hybrid searchb7cf383fix lint03776a7fix lint3264c04remove weighted sum test in rrf test suited78d2aaMerge branch 'main' into rrf-bug-fix📊 Changes
3 files changed (+165 additions, -110 deletions)
View changed files
📝
langchain_postgres/v2/async_vectorstore.py(+1 -0)📝
langchain_postgres/v2/hybrid_search_config.py(+38 -24)📝
tests/unit_tests/v2/test_hybrid_search_config.py(+126 -86)📄 Description
Fixes Major Issue 1 in https://github.com/langchain-ai/langchain-postgres/issues/234
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.