This commit is contained in:
ayush chaurasia
2024-02-23 03:03:39 +05:30
parent 6486ec870b
commit 9ca0260d54

View File

@@ -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")