diff --git a/chromadb/api/models/Collection.py b/chromadb/api/models/Collection.py index 6aa9958d6df..b081446fef2 100644 --- a/chromadb/api/models/Collection.py +++ b/chromadb/api/models/Collection.py @@ -186,9 +186,9 @@ def query( validate_where_document(where_document) if where_document else None ) query_embeddings = ( - maybe_cast_one_to_many(query_embeddings) if query_embeddings else None + maybe_cast_one_to_many(query_embeddings) if query_embeddings is not None else None ) - query_texts = maybe_cast_one_to_many(query_texts) if query_texts else None + query_texts = maybe_cast_one_to_many(query_texts) if query_texts is not None else None include = validate_include(include, allow_distances=True) # If neither query_embeddings nor query_texts are provided, or both are provided, raise an error