Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"numpy>=1.24.4, <3.0.0; python_version >= '3.11'",
"numpy>=1.24.4, <=2.2.6; python_version == '3.10'",
"numpy>=1.24.4, <=2.0.2; python_version <= '3.9'",
"langchain-postgres>=0.0.15",
"langchain-postgres>=0.0.16",
]

classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ numpy==2.3.3; python_version >= "3.11"
numpy==2.2.6; python_version == "3.10"
numpy==2.0.2; python_version <= "3.9"
langgraph==0.6.10
langchain-postgres==0.0.15
langchain-postgres==0.0.16
6 changes: 3 additions & 3 deletions tests/test_async_vectorstore_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ async def test_hybrid_search_weighted_sum_vector_bias(
result_ids = [doc.metadata["doc_id_key"] for doc in results]

assert len(result_ids) > 0
assert result_ids[0] == "hs_doc_orange_fruit"
assert result_ids[0] == "hs_doc_generic_tech"

async def test_hybrid_search_weighted_sum_fts_bias(
self, vs_hybrid_search_with_tsv_column
Expand Down Expand Up @@ -611,7 +611,7 @@ async def test_hybrid_search_fts_empty_results(
assert len(result_ids) > 0
assert "hs_doc_apple_fruit" in result_ids or "hs_doc_apple_tech" in result_ids
# The top result should be one of the apple documents based on vector search
assert results[0].metadata["doc_id_key"].startswith("hs_doc_unrelated_cat")
assert results[0].metadata["doc_id_key"].startswith("hs_doc_apple_fruit")

async def test_hybrid_search_vector_empty_results_effectively(
self, vs_hybrid_search_with_tsv_column
Expand All @@ -638,7 +638,7 @@ async def test_hybrid_search_vector_empty_results_effectively(

# Expect results based purely on FTS search for "orange fruit"
assert len(result_ids) == 1
assert result_ids[0] == "hs_doc_generic_tech"
assert result_ids[0] == "hs_doc_orange_fruit"

async def test_hybrid_search_without_tsv_column(self, engine):
"""Test hybrid search without a TSV column."""
Expand Down