Agentic-RAG-Platform

ADR-003: Cross-encoder reranking with BGE-reranker-v2-m3

Context

After hybrid retrieval, the top-K candidates may still contain irrelevant chunks. A reranker can re-score (query, chunk) pairs jointly using a cross-encoder model.

Problem

Choose between no reranker, a small/fast reranker, or a large cross-encoder.

Options considered

Option A: No reranker

Option B: Small reranker (e.g., MiniLM)

Option C: BGE-reranker-v2-m3 (cross-encoder)

Option D: Cohere / Voyage reranker API

Decision

Option C: BGE-reranker-v2-m3, self-hosted.

Rationale

Trade-offs

Consequences

What happens if this component fails?

How would we replace it later?