Haystack Diagnostics Engine — open-source inspect/validate/diagnose toolchain for RAG pipelines #11712
rautaditya2606
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
This looks very aligned with the failure mode people hit in production RAG. One thing I’d add is a “debug bundle” output for a single query, not only individual tools. For one failed query, persist: pipeline graph/version, component params, retrieved docs before/after ranker, scores, metadata, final prompt, answer, and document-store checks for touched docs. Then allow diffing that bundle against a known-good run. For the failure taxonomy, I’d consider splitting RANKING_FAILURE into “right doc retrieved but below cutoff” vs “right doc present but lost after rerank/context packing.” Those require different fixes and are easy to conflate when looking only at final answer quality. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Haystack Diagnostics
Hey everyone,
As a Haystack contributor and daily Haystack user, I kept running into the same debugging workflow: a retrieval pipeline fails, results look wrong, and I end up manually inspecting document stores, pipeline graphs, and intermediate outputs to find the root cause.
Haystack already provides great building blocks like
LoggingTracer, OpenTelemetry support, and pipeline visualization, but I couldn't find a single tool that brings validation, inspection, and retrieval diagnostics together.So I built haystack-diagnostics.
Features
validate_document_storeinspect_pipelinediagnose_retrieval_failureClassifies failures as:
NO_RESULTSRANKING_FAILUREEMPTY_CONTEXTGENERATOR_FAILUREAll tools are also exposed through a lightweight MCP server for clients like Claude Desktop and Cursor.
Repo: https://github.com/rautaditya2606/haystack-diagnostics
The demo runs fully offline with no API keys required.
Would appreciate feedback from maintainers and production Haystack users on the approach, failure classification logic, and anything missing from the debugging workflow.
All reactions