Skip to main content
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.
We can use this as a retriever. It will show functionality specific to this integration. After going through, it may be useful to explore relevant use-case pages to learn how to use this vector store as part of a larger chain. This page covers how to use RAGatouille as a retriever in a LangChain chain.
[!WARNING] This integration works when using a ragatouille version less than 0.0.10 If you want to use ColBERT, you can use Pylate - Checkout the usage example.

Setup

The integration lives in the ragatouille package.

Usage

This example is taken from their documentation
We can then convert easily to a LangChain retriever! We can pass in any kwargs we want when creating (like k)

Chaining

We can easily combine this retriever in to a chain.