# My RAG Pipeline Found the Right Documents. Then the Reranker Buried Them.

DevFeed: [My RAG Pipeline Found the Right Documents. Then the Reranker Buried Them.](<https://devfeed.tech/articles/my-rag-pipeline-found-the-right-documents-then-the-reranker-buried-them-92546.md>)

Original publisher: [Read original article](<https://hackernoon.com/my-rag-pipeline-found-the-right-documents-then-the-reranker-buried-them?source=rss>)

Author: trpevski

Published: 2026-10-21T07:24:44Z

Content type: opinion

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [architecture-components](<https://devfeed.tech/topics/architecture-components.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [context](<https://devfeed.tech/tags/context.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [cross-encoder](<https://devfeed.tech/tags/cross-encoder.md>), [cross-encoder-reranking](<https://devfeed.tech/tags/cross-encoder-reranking.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [input](<https://devfeed.tech/tags/input.md>), [llm](<https://devfeed.tech/tags/llm.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [rag](<https://devfeed.tech/tags/rag.md>), [rag-best-practices](<https://devfeed.tech/tags/rag-best-practices.md>), [reranker](<https://devfeed.tech/tags/reranker.md>), [reranking](<https://devfeed.tech/tags/reranking.md>), [reranking-failures](<https://devfeed.tech/tags/reranking-failures.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>), [vector-search](<https://devfeed.tech/tags/vector-search.md>)

## AI overview

The pipeline's vector search retrieved the correct documents, but reranking pushed one from #1 to #4. The article traces this to mismatched document representations between embedding and reranking, weak reranker language support for multilingual content, and input truncation that can hide useful context. Adding title and section signals and increasing the reranker's input length improved results, though it did not eliminate every regression. Reducing the candidate pool lowered reranking latency while keeping retrieval quality close to the vector search baseline. The recommended debugging steps are to compare rankings before and after reranking, inspect what text each stage receives, check language fit and truncation, and measure changes with MRR and Recall@k rather than judging only final answers.

## Source excerpt

A RAG pipeline retrieved the right documents but lost them during reranking. Here's what went wrong and how to improve retrieval quality.