mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-07 04:12:59 +00:00
update
This commit is contained in:
@@ -129,6 +129,11 @@ def test_linear_combination(tmp_path):
|
|||||||
table.search(vector=query_vector, text=query, query_type="vector").rerank(
|
table.search(vector=query_vector, text=query, query_type="vector").rerank(
|
||||||
normalize="score"
|
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
|
# raise an error if only vector or text is provided
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
|
|||||||
Reference in New Issue
Block a user