From 51cc422799fe832b46988a55fdf8ff19cb300d76 Mon Sep 17 00:00:00 2001 From: ayush chaurasia Date: Fri, 23 Feb 2024 14:03:21 +0530 Subject: [PATCH] update --- python/tests/test_rerankers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/tests/test_rerankers.py b/python/tests/test_rerankers.py index 105c53a1..94264bd2 100644 --- a/python/tests/test_rerankers.py +++ b/python/tests/test_rerankers.py @@ -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):