Extending the tests to validate more supported scorers for hybrid search. Adding experimental_method annotation to hybrid_search commands.#3939
Conversation
…rch. Adding experimental_method annotation to hybrid_search commands.
There was a problem hiding this comment.
Pull request overview
This PR extends test coverage for hybrid search scorer support and adds experimental annotations to hybrid_search methods. The changes validate that multiple scoring algorithms (TFIDF, TFIDF.DOCNORM, BM25, BM25STD, BM25STD.TANH, DISMAX, DOCSCORE, HAMMING) work with hybrid search operations.
Changes:
- Added new test method
test_hybrid_search_query_with_supported_scorerto validate multiple scoring algorithms - Updated documentation for scorer parameter to include newly tested scoring algorithms
- Added
@experimental_method()decorator to both sync and asynchybrid_searchmethods
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/test_search.py | Adds test to validate 8 different scoring algorithms work with hybrid search |
| redis/commands/search/hybrid_query.py | Updates scorer documentation to list additional supported scoring algorithms |
| redis/commands/search/commands.py | Adds experimental_method decorator to hybrid_search methods (sync and async) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
augment review |
🤖 Augment PR SummarySummary: This PR expands hybrid-search scorer coverage and improves experimental/deprecation utilities for async APIs. Changes:
Technical Notes: Decorators now use 🤖 Was this summary useful? React with 👍 or 👎 |
Description of change
Please provide a description of the change here.
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.