From 59db036118c856abb40ede720e30a969e194e6d7 Mon Sep 17 00:00:00 2001 From: Nitesh Yadav <78202277+n1teshy@users.noreply.github.com> Date: Sun, 3 May 2026 04:21:00 +0530 Subject: [PATCH] fix(python): add missing space in hybrid query error message (#3340) Hi, the hybrid query error message looks like it can use a space, just added it. ```python def _validate_query(self, query, vector=None, text=None): if query is not None and (vector is not None or text is not None): raise ValueError( "You can either provide a string query in search() method" "or set `vector()` and `text()` explicitly for hybrid search." "But not both." ) ``` --- python/python/lancedb/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/python/lancedb/query.py b/python/python/lancedb/query.py index b796fc40c..0a9473a0a 100644 --- a/python/python/lancedb/query.py +++ b/python/python/lancedb/query.py @@ -1643,7 +1643,7 @@ class LanceHybridQueryBuilder(LanceQueryBuilder): def _validate_query(self, query, vector=None, text=None): if query is not None and (vector is not None or text is not None): raise ValueError( - "You can either provide a string query in search() method" + "You can either provide a string query in search() method " "or set `vector()` and `text()` explicitly for hybrid search." "But not both." )