Question 320
For a Databricks GenAI application, consider this situation: A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. What should the engineer implement FIRST?
Explanation
Correct Answer
Correct. A basic RAG chain separates user input, query transformation, retrieval, prompt assembly, model generation and output validation. In the given situation — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — the targeted implement action is: Assemble query-to-retriever-to-context-grounded-prompt-to-LLM stages and attach citations to retrieved passages. This directly meets the stated workflow constraint instead of addressing an adjacent capability.
Incorrect Answers
Not the strongest implement choice for this specific question. Join authorized structured values and retrieved policy context through a controlled composition stage. This action primarily relates to Parallel retrieval and deterministic chain postprocessing: Combining structured lookup and semantic retrieval requires explicit routing, result joining, and downstream schema checks. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.
Not the strongest implement choice for this specific question. Define a schema-constrained prompt with field types, required keys and strict structured-output validation at the consumer. This action primarily relates to Structured JSON schema prompt and format compliance: A model can produce plausible prose rather than machine-readable JSON unless the output contract and validation are explicit. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.
Not the strongest implement choice for this specific question. Split read-only diagnostic tools from authorized destructive operations with separate permissions. This action primarily relates to Agent tool schemas, least privilege and retries: Well-described tool schemas constrain parameters, and idempotent retries prevent duplicate side effects. However, the described case — A policy assistant produces unsupported answers because its chain sends only the user question to the LLM. — is testing Retriever-generator chain component boundaries. It does not directly establish the implement outcome or constraint that the question requires; it may still be useful in a different stage or incident.