From 9ca0260d54c98a0ef107c08290305b6d7b58bd68 Mon Sep 17 00:00:00 2001 From: ayush chaurasia Date: Fri, 23 Feb 2024 03:03:39 +0530 Subject: [PATCH] update --- python/lancedb/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lancedb/table.py b/python/lancedb/table.py index 0c74f560..bd9fc3c6 100644 --- a/python/lancedb/table.py +++ b/python/lancedb/table.py @@ -1272,7 +1272,7 @@ class LanceTable(Table): and also the "_distance" column which is the distance between the query vector and the returned vector. """ - is_query_defined = query is not None or (vector is not None and text is not None) + is_query_defined = query is not None or vector is not None or text is not None if vector_column_name is None and is_query_defined: vector_column_name = inf_vector_column_query(self.schema) register_event("search_table")