RAGatouille makes it as simple as can be to use ColBERT! ColBERT is a fast and accurate retrieval model, enabling scalable BERT-based search over large text collections in tens of milliseconds.
See the ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interaction paper.
There are multiple ways that we can use RAGatouille.
Setup
The integration lives in theragatouille package.
Retriever
We can use RAGatouille as a retriever. For more information on this, see the RAGatouille RetrieverDocument Compressor
We can also use RAGatouille off-the-shelf as a reranker. This will allow us to use ColBERT to rerank retrieved results from any generic retriever. The benefits of this are that we can do this on top of any existing index, so that we don’t need to create a new index.Setup Vanilla Retriever
First, let’s set up a vanilla retriever as an example.Using ColBERT as a reranker
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.