Benchmarking 4 RAG Rerankers: Cohere Lifted the Answer from Rank 15 to 1

Affectionate_Slip654 · reddit · 2026-10-14

The author built a complete RAG reranking pipeline (retrieve Top 20 → rerank → Top 5 → LLM) and benchmarked four rerankers—local Cross-Encoder, LLM-based reranking, Cohere Rerank, and Jina Reranker—on 5 payment-industry PDFs (PCI DSS, central bank reports, 1,507 chunks), with full code and a video walkthrough.

Key findings:

Stack: Python, Qdrant, gemini-embedding-2-preview (3,072-dim), ms-marco-MiniLM-L-6-v2, Cohere/Jina APIs. Code layout: retriever.py → rerankers.py → generate.py → compare.py.

Original post →

More from coding & agent

coding & agent channel →