RAG pipeline diagnostics