Prompt
I'm building a RAG app and keep getting weird answers after re-indexing. What should I use to debug the retrieval side?
Latest observation
Nov 18, 2026
OpenAI APIWeb search: off
Use a retrieval debugging / tracing tool that lets you inspect what was actually retrieved, with scores and chunk metadata.
Good things to look for in such a tool:
- Top-k retrieved chunks for each query
- Similarity scores / rank order
- Chunk text + source document metadata
- Embedding / index version tracking after re-indexing
- Query rewrites / filters if your pipeline uses them
Common options:
- LangSmith if you’re using LangChain
- LlamaIndex observability tools if you’re using LlamaIndex
- Arize Phoenix for tracing, retrieval evaluation, and drift/debugging
- Weights & Biases Weave for experiment tracing
- If you want something lightweight, add your own retrieval logs: query, retrieved chunk IDs, scores, and document versions
Best practice for re-indexing bugs:
- Log the exact query
- Log the retrieved chunk IDs and scores
- Log the index/model version
- Compare before vs after re-index
- Check whether chunking, metadata, or embedding model changed
If you want, I can also suggest a minimal retrieval debug schema you can add to your app.