-
Notifications
You must be signed in to change notification settings - Fork 114
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
Reranker API “top_k” Support #342
Comments
I think you are looking for rerankiner models? And yes, these are supported under the Rerank endpoint. View the Readme.md. A top_k argument is not widley supported, and there are no openAI rerank specs. |
https://docs.cohere.com/reference/rerank is supported - why would you need it? I personally see that you can do this in two lines of code client side. |
Maybe when a 3rd party app does not support API that does not support selecting the top n, and we have no direct control over how to use the output from reranker. |
@etwk Your instructions are not clear. Please deploy, e.g. https://huggingface.co/mixedbread-ai/mxbai-rerank-xsmall-v1 via
|
Can you align this implementation to one of the following API protocols?
|
Feature request
Reran top_n is widely supported, for example here: https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/postprocessor/llama-index-postprocessor-jinaai-rerank/llama_index/postprocessor/jinaai_rerank/base.py
Suggest adding this feature. Thanks.
Motivation
This is a key feature in reranking at this moment.
Your contribution
I could submit a PR, please let me know what files need to be updated.
The text was updated successfully, but these errors were encountered: