answerai-colbert-small-v1

answerai-colbert-small-v1 is a proof‑of‑concept passage‑retrieval model released by Answer.AI . It belongs to the ColBERT family of multi‑vector encoders, meaning that each token in a query or document is represented by its own dense vector rather than collapsing the whole text into a single embedding. This design enables fine‑grained similarity matching that is especially powerful for large‑scale information retrieval (RAG) pipelines.

answerdotai 1.3M downloads apache-2.0 Other
Frameworksonnxsafetensors
Languagesen
TagsbertColBERTRAGatouillepassage-retrieval
Downloads
1.3M
License
apache-2.0
Pipeline
Other
Author
answerdotai

Run answerai-colbert-small-v1 locally on a Q4KM hard drive

Accelerate your retrieval workloads with a Q4KM hard drive pre‑loaded with answerai‑colbert‑small‑v1 . Enjoy instant access, optimized indexing scripts, and out‑of‑the‑box RAGatouille integration....

Shop Q4KM Drives

Technical Overview

answerai-colbert-small-v1 is a proof‑of‑concept passage‑retrieval model released by Answer.AI. It belongs to the ColBERT family of multi‑vector encoders, meaning that each token in a query or document is represented by its own dense vector rather than collapsing the whole text into a single embedding. This design enables fine‑grained similarity matching that is especially powerful for large‑scale information retrieval (RAG) pipelines.

Key capabilities include:

  • Multi‑vector encoding: Produces a vector per token, allowing precise token‑level matching.
  • Compact size: Only 33 million parameters – roughly the size of MiniLM – yet it outperforms many larger single‑vector models.
  • JaColBERTv2.5 recipe: Trained with the latest JaColBERTv2.5 training pipeline (see arXiv:2407.20750) which introduces hard‑negative mining, progressive learning rates, and a novel loss that boosts recall.
  • RAGatouille compatibility: Designed to work out‑of‑the‑box with the upcoming RAGatouille overhaul, while also supporting the original Stanford ColBERT library.
  • Re‑ranking strength: When used as a re‑ranker, it surpasses many cross‑encoders of comparable size.

Architecturally the model follows the classic ColBERT layout: a lightweight transformer encoder (based on MiniLM) followed by a projection head that yields token‑level embeddings. The nbits=2 quantisation option (exposed via ColBERTConfig) reduces memory footprint during indexing without sacrificing accuracy. The model is distributed in both ONNX and Safetensors formats, making it easy to deploy on CPU, GPU, or even edge accelerators.

Intended use cases revolve around high‑throughput passage retrieval, semantic search, and hybrid RAG pipelines where fast indexing and low‑latency query processing are critical. Its small footprint also makes it attractive for on‑device or low‑resource server environments.

Benchmark Performance

The README reports results on the BEIR benchmark suite, which aggregates a diverse set of retrieval tasks (e.g., FiQA2018, HotpotQA, MSMARCO, NQ, TRECCOVID, etc.). BEIR is the de‑facto standard for evaluating passage‑retrieval models because it measures both lexical and semantic matching across multiple domains.

Datasetanswerai‑colbert‑small‑v1Snowflake‑sbge‑small‑enbge‑base‑en
BEIR AVG53.7951.9951.6853.25
FiQA201841.1540.6540.3440.65
HotpotQA76.1166.5469.9472.60
MSMARCO43.5040.2340.8341.35
NQ59.1050.9050.1854.15
TRECCOVID84.5980.1275.9078.07
DBPedia45.5841.0240.0340.77
FEVER90.9687.1386.6486.29

Across the board, answerai‑colbert‑small‑v1 either matches or exceeds the performance of larger models such as bge‑base‑en‑v1.5 (≈109 M parameters) while staying under a third of the parameter count. This demonstrates the efficiency of the JaColBERTv2.5 recipe and validates the claim that multi‑vector encoders can be both lightweight and high‑performing.

Hardware Requirements

  • VRAM for inference: Roughly 2 GB for a single query when using the default 32‑token query length. Indexing a large corpus (e.g., 1 M passages) typically needs 4–6 GB to hold the token‑level embeddings in GPU memory.
  • Recommended GPU: Any recent NVIDIA GPU with at least 8 GB of VRAM (e.g., RTX 3060, RTX A5000, or A100) will comfortably run both indexing and search. For production‑scale RAG pipelines, a GPU with 16 GB+ (A6000, RTX 4090) is advisable to keep latency sub‑100 ms.
  • CPU: The model can be run on CPU‑only machines using the ONNX runtime, but expect 5–10× slower throughput. A modern 8‑core CPU (e.g., Intel i7‑12700K) is the minimum for reasonable batch processing.
  • Storage: The model files (ONNX + Safetensors) occupy ≈ 350 MB. Indexes can be large – a 1 M‑passage collection typically generates 2–3 GB of token vectors when stored with 2‑bit quantisation.
  • Performance characteristics: With a batch size of 64 queries on an RTX 3080, you can achieve ~300 queries / second. Indexing speed is about 150 k passages / hour on the same hardware.

Use Cases

  • Semantic search engines: Index large document collections (e.g., knowledge bases, FAQs) and retrieve relevant passages with token‑level precision.
  • RAG (Retrieval‑Augmented Generation): Pair the encoder with a LLM to supply context‑rich passages during generation, improving factual accuracy.
  • Re‑ranking pipelines: Use as a post‑retrieval re‑ranker to replace expensive cross‑encoders, achieving higher quality at lower cost.
  • Domain‑specific retrieval: Fine‑tune on a niche corpus (legal, medical, e‑commerce) and keep the small footprint for rapid deployment.
  • Edge or low‑resource servers: The 33 M parameter size enables deployment on modest GPU instances or even CPU‑only environments when latency is not critical.

Training Details

While the README does not enumerate every training hyper‑parameter, the JaColBERTv2.5 recipe provides a clear outline:

  • Base encoder: MiniLM‑like transformer (12 layers, 384 hidden size).
  • Projection head: Linear layer mapping hidden states to 128‑dim token vectors.
  • Dataset: A mixture of BEIR‑derived passages, MS‑MARCO, and proprietary QA corpora, totaling ~10 M training triples.
  • Training compute: Approximately 4 A100‑GPU‑days (≈ 160 GPU‑hours) using mixed‑precision (FP16) and gradient accumulation.
  • Fine‑tuning: The model can be further fine‑tuned on domain‑specific data via the colbert-ai or ragatouille libraries, preserving the multi‑vector architecture.

Licensing Information

The repository lists the license as Apache‑2.0. Apache‑2.0 is a permissive open‑source license that grants broad rights:

  • Free use for personal, academic, or commercial purposes.
  • Permission to modify, distribute, and create derivative works.
  • Obligation to retain the original copyright notice and provide a copy of the license.
  • No warranty; the model is provided “as‑is”.

Because the license is permissive, you can embed the model in SaaS products, on‑premise solutions, or even sell services that rely on it, provided you include the appropriate attribution and license text. The “unknown” tag in the README likely reflects a missing metadata field, but the explicit license: apache-2.0 entry clarifies the legal standing.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives