This commit is contained in:
ayush chaurasia
2024-02-23 14:03:21 +05:30
parent a696dbc8f4
commit 51cc422799

View File

@@ -129,6 +129,11 @@ def test_linear_combination(tmp_path):
table.search(vector=query_vector, text=query, query_type="vector").rerank(
normalize="score"
)
with pytest.raises(ValueError):
table.search(vector=query_vector, text=query, query_type="fts").rerank(
normalize="score"
)
# raise an error if only vector or text is provided
with pytest.raises(ValueError):