We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2dd2f5 commit 719b391Copy full SHA for 719b391
tests/test_semantic_search.py
@@ -827,11 +827,11 @@ def test_fetches_max_then_falls_back_per_connector(
827
top_k=5,
828
)
829
830
- # First call: broad search without top_k (let backend decide, filter client-side)
+ # First call: passes user's top_k to backend
831
# Second call: per-connector fallback for "bamboohr" since first returned nothing
832
assert mock_search.call_count == 2
833
first_call = mock_search.call_args_list[0].kwargs
834
- assert first_call["top_k"] is None
+ assert first_call["top_k"] == 5
835
assert first_call["connector"] is None
836
second_call = mock_search.call_args_list[1].kwargs
837
assert second_call["connector"] == "bamboohr"
0 commit comments