This commit is contained in:
ayush chaurasia
2024-02-23 13:54:44 +05:30
parent 9ca0260d54
commit a696dbc8f4
3 changed files with 41 additions and 23 deletions

View File

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