Design observability for retrieval, reranking, and answer grounding.
Instruction: Describe the traces and metrics you would expose for a production RAG stack.
Context: Assesses whether the candidate can design a practical architecture and explain the main tradeoffs. Describe the traces and metrics you would expose for a production RAG stack.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
I would instrument the RAG pipeline as a sequence of observable decisions, not one opaque request. A useful trace should tell me what query we received, how it was rewritten, what candidate documents were retrieved, how they were reranked, which evidence actually entered the prompt, and what citations the final answer used.
On top of traces, I want metrics by stage:...
Related Questions
-
easy
-
easy
-
easy
-
easy
-
easy
-
easy