Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hsm207 opened this issue Mar 26, 2024 · 0 comments
Open

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

hsm207 opened this issue Mar 26, 2024 · 0 comments

Comments

@hsm207
Copy link
Contributor

hsm207 commented Mar 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant