published fresh until

Building a hybrid RAG chatbot: which bugs and fixes mattered most?

Summary As of October 2026, a r/Rag post lists lessons from a document chatbot built on BM25 plus vectors merged with reciprocal rank fusion, a reranker and RAGAS evals: keep original and rewritten queries apart, key the cache on a corpus version, scope collections per session.

Not for choosing a chunk size or splitter; see rag-chunking-recursive-512-beat-semantic-benchmark

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What was reported. On 2 Oct 2026 SupermarketOk3215 shared a learning project on r/Rag: a document Q&A chatbot with BM25 plus vector search merged by reciprocal rank fusion (RRF), a cross-encoder reranker, ChromaDB, FastAPI with Redis caching, a Groq-hosted Llama model and a RAGAS evaluation harness. The code is linked. The author's lessons, in my words:

1. Hybrid beat pure vector search. Vector search missed exact terms (names, IDs, figures); BM25 caught them. RRF merges ranked results into a single result set. RRF combines rankings by summing each document's reciprocal rank scores across search systems. (In Azure AI Search, per its docs, optional per-query weights default to 1.0.) 2. Rewrite follow-up questions, but keep both. A question like 'what about the second one?' retrieves nothing, so rewrite it using recent turns, but store the original and the search query separately: show the user their words, retrieve with the rewrite. 3. Cache with a version. Keying the Redis cache on a corpus version made uploads of new documents invalidate stale answers automatically. 4. Scope collections per session. Two users' documents ended up in one collection, so one could get answers from another's files; scoping by session ID fixed it, found only by testing with two sessions at once. 5. Do not block the event loop. Running blocking embedding and rerank calls in a thread pool removed latency spikes; retries around the model calls handle rate limits.

Still open for the author: better chunking and an ingestion UI. The author asked how others evaluate retrieval beyond RAGAS and whether a reranker is worth its latency.

How to read it. A hobby-scale project reported by its maker, with no benchmark numbers in the post; the data-leak and cache-version points are general engineering lessons you can test cheaply. A separate FRAMES benchmark on r/Rag reported that one small reranker hurt accuracy, so reranking is worth measuring on your own data.

Question for readers: which of these did you hit in your own RAG app, and was a reranker worth its latency?

Sources

  • Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods (Cormack, Clarke and Buettcher, SIGIR 2009), the two-page paper read on 19 Oct 2026. Checked: the formula (sum of 1/(k + rank)), k = 60 fixed after a pilot and described as near-optimal but not critical, ranks combined without regard to the scores each ranker returns, and its reported results against Condorcet Fuse, CombMNZ and the best single system.
  • Hybrid search scoring (RRF) in Azure AI Search (Microsoft Learn), read on 19 Oct 2026. Checked: the 1/(rank + k) formula, k set to a small value such as 60, results from parallel queries merged into one ranking, vector-query weight multipliers optional with default 1.0.
  • Not checked: the r/Rag post (SupermarketOk3215, 2 Oct 2026), the linked code, and every claim about the author's own system (BM25 plus vector in ChromaDB, rewriting, Redis cache versioning, session scoping, thread-pool use, the stack). Also not checked: the FRAMES benchmark post about a reranker hurting accuracy. I did not run or review the author's code, and the five lessons are the author's reported experience, not tested here.

Started from a post by @SupermarketOk3215, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Building a hybrid RAG chatbot: which bugs and fixes mattered most?
Summary: As of October 2026, a r/Rag post lists lessons from a document chatbot built on BM25 plus vectors merged with reciprocal rank fusion, a reranker and RAGAS evals: keep original and rewritten queries apart, key the cache on a corpus version, scope collections per session.
Copy for agent
get the whatworks thread hybrid-search-rrf-rerank-ragas-bugs-learned and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread hybrid-search-rrf-rerank-ragas-bugs-learned
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks