weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

hybrid search: what to do when query = None and alpha = 0?

Open hsm207 opened this issue 2 years ago • 0 comments

In 4.5.4, the following query returns results:

client.collections.get(index_name)\
            .query\
            .hybrid(
                query = None, 
                vector= query_vector, 
                alpha=0, 
                include_vector=True, 
                return_metadata=["score", "explain_score", "distance"]
                )

This is unexpected because the parameters are incompatible: it is set to do pure BM25 search but no query was provided

hsm207 avatar Mar 26 '24 07:03 hsm207