The Rerank operator is used to reorder the list of relevant documents for a query. It uses the [MS MARCO Cross-Encoders](https://www.sbert.net/docs/pretrained_cross-encoders.html#ms-marco) model to get the relevant scores and then reorders the documents.
['Towhee is Towhee is a cutting-edge framework to deal with unstructure data.', 'I do not know about towhee', 'Towhee has many powerful operators.', 'The weather is good' ])
['Towhee is Towhee is a cutting-edge framework to deal with unstructure data.', 'I do not know about towhee', 'Towhee has many powerful operators.', 'The weather is good' ])
The model name of CrossEncoder, you can set it according to the [Model List](https://www.sbert.net/docs/pretrained-models/ce-msmarco.html#models-performance).
The list of documents after rerank and the list of corresponding scores.
# More Resources
- [The guide to rerank-english-v3.0 | Cohere](https://zilliz.com/ai-models/rerank-english-v3.0): rerank-english-v3.0: a reranking model for English documents and semi-structured data (JSON); context length: 4096 tokens.
- [Optimizing RAG with Rerankers: The Role and Trade-offs - Zilliz blog](https://zilliz.com/learn/optimize-rag-with-rerankers-the-role-and-tradeoffs): Rerankers can enhance the accuracy and relevance of answers in RAG systems, but these benefits come with increased latency and computational costs.
- [What Are Rerankers and How They Enhance Information Retrieval - Zilliz blog](https://zilliz.com/learn/what-are-rerankers-enhance-information-retrieval): Rerankers are specialized components in information retrieval systems that perform a crucial second-stage evaluation of search results.
- [Building an Intelligent QA System with NLP and Milvus - Zilliz blog](https://zilliz.com/blog/building-intelligent-chatbot-with-nlp-and-milvus): The Next-Gen QA Bot is here
- [The guide to rerank-english-v2.0 | Cohere](https://zilliz.com/ai-models/rerank-english-v2.0): rerank-english-v2.0: a reranking model for English language documents with a context length of 512 tokens.