Rerank 3
Captured source
source ↗North Mini Code. Cohere's first model for developers.
Apr 11, 2024
6 minutes read
Introducing Rerank 3: A New Foundation Model for Efficient Enterprise Search & Retrieval
Today, we're introducing our newest foundation model, Rerank 3, purpose built to enhance enterprise search and Retrieval Augmented Generation (RAG) systems.
Our model is compatible with any database or search index and can also be plugged into any legacy application with native search capabilities. With a single line of code, Rerank 3 can boost search performance or reduce the cost of running RAG applications with negligible impact to latency.
Rerank 3 offers state-of-the-art capabilities for enterprise search, including:
- 4k context length to significantly improve search quality for longer documents
- Ability to search over multi-aspect and semi-structured data like emails, invoices, JSON documents, code, and tables
- Multilingual coverage of 100+ languages
- Improved latency and lower total cost of ownership (TCO)
Generative models with long contexts have the ability to execute RAG. However, in order to optimize accuracy, latency and cost a RAG solution requires a combination of generative models and our Rerank models. The high precision semantic reranking of Rerank 3 makes sure that only the most relevant information is fed to the generative model, increasing response accuracy and keeping latency and cost low, in particular when retrieving information from thousands and millions of documents.
##### Enhanced Enterprise Search
Enterprise data is often complex and current systems have difficulty searching through multi-aspect and semi-structured data sources. The most useful data at companies is not often in simple document format and semi-structured data formats such as JSON are common across enterprise applications. Rerank 3 is able to rank complex, multi-aspect data (e.g. emails) based on all of their relevant metadata fields, including their recency.
_Semi-structured retrieval accuracy based Recall@5 on TMDB-5k-Movies, WikiSQL, nq-tables, and Cohere annotated datasets (higher is better)._
Rerank 3 also demonstrates a marked improvement on code retrieval capabilities. This could include retrieval over an enterprise's proprietary code repository to enhance the productivity of their engineering teams, or over huge corpuses of documentation.
Code evaluation accuracy based on nDCG@10 on Codesearchnet, Stackoverflow, CosQA, Human Eval, MBPP, DS1000 (higher is better).
Global organizations also deal with multilingual data sources and historically multilingual retrieval has been a challenge with keyword-based methods. Our Rerank 3 model offers strong multilingual performance in over 100+ languages simplifying retrieval for non-English speaking customers.
_Multilingual retrieval accuracy based nDCG@10 on MIRACL (higher is better)._
A primary challenge when building semantic search and RAG systems is determining how to best chunk your data. Our Rerank 3 model now boasts a 4k context length allowing customers to pass in larger documents for ranking. This allows our model to consider more context from the document when determining a relevance score, and reduces the need for chunking documents in order to fit within the model’s context window.
_Long context accuracy based on nDCG@10 on TREC 2019-2022, Conditional QA , NQ-Hard, Qasper, Genomics, QMSum, FinanceBench (higher is better)._
We are also excited to announce that Rerank 3 is supported natively in Elastic’s Inference API starting today. Elasticsearch has a widely adopted search technology and the keyword and vector search capabilities in the Elasticsearch platform are built to handle complex enterprise data. To start building enterprise search systems with Cohere and Elastic, check out the latest guide here.
> _"We're excited to be partnering with Cohere to help businesses unlock the potential of their data." said Matt Riley, GVP & GM of Elasticsearch "Cohere's advanced retrieval models, Embed 3 and Rerank 3, offer leading performance on complex enterprise data. They are quickly becoming essential components in any enterprise search system. We're happy to have Cohere's offerings deeply integrated into Elasticsearch via our Inference API, as critical developer tools for best in class relevance and hybrid search."_
##### Improved Latency even with Longer Context
In many business domains such as e-commerce or customer service, low latency is crucial to delivering a quality experience. We kept this in mind while building Rerank 3, which shows up to 2x lower latency compared to Rerank 2 for shorter document lengths and up to 3x improvements at long context lengths.
_Comparisons computed as the time to rank 50 documents across a variety of document token-length profiles; each run assumes a batch of 50 documents with uniform token length across each document_.
##### More Performant and Efficient RAG
The retrieval step is crucial in RAG. Rerank 3 bolsters the key factors for strong RAG performance: quality of responses and latency. Our model helps you isolate the most relevant documents to respond to a user’s question and increases...
Excerpt shown — open the source for the full document.
Notability
notability 7.0/10Notable reranker model release by Cohere, key for retrieval.