-
Notifications
You must be signed in to change notification settings - Fork 508
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
[DOC] Documentation for new reranking feature #6359
Comments
@HenryL27 Can you please add some info on re-ranker feature: |
@HenryL27 thank you for tracking this - Could you also help outline how best to contribute when adding support for other models? Eg in my case I would like to add Cohere reranking with Opensearch |
Creating a rerank pipeline:
The rerank pipeline has two parameters: the context object and the rerank-type object. The rerank-type object (keyed by name; here it's "ml-opensearch") provides the rerank processor static information needed across all reranking calls. For example, the id of the reranking model in ml-commons.
Requires The context object provides the rerank processor information necessary for generating reranking context at query time. For instance, "document_fields" specifies where to look in each search result for context to pass to the reranking model.
|
Searching with a rerank pipeline:
Reranking queries are pretty similar to ordinary queries, except that they have this additional "ext.rerank" section.
when specifying |
@tianjing-li model supporting is handled by the ml-commons plugin. If you have a model you'd like to add support for, please raise an issue and contribute it there. As I understand, this PR may have added support for the Cohere reranker already? |
Hi @HenryL27 , thanks for submitting the doc issue. Can you please submit a documentation PR with this info? We need to have a PR up in order for it to be considered for the 2.12 release. Thanks! |
@HenryL27 thank you! |
What do you want to do?
Tell us about your request. Provide a summary of the request and all versions that are affected.
2.12 introduces a new feature for reranking. We need to add docs for this.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
The text was updated successfully, but these errors were encountered: