🔥 3-day streak
Databricks Certified Generative AI Engineer Associate58 / 145
Question 58 of 145

A Generative AI Engineer is building a RAG chain with LangChain on Databricks. Business stakeholders require that every generated answer include a list of the source documents that were retrieved and passed to the LLM, so end users can verify claims. The engineer is composing the chain using LCEL (LangChain Expression Language) with a Databricks Vector Search retriever and a Foundation Model API chat model. What is the most appropriate way to satisfy this requirement while keeping the generated answer and the sources in a single structured output?

Reviewed for accuracy · Report an issueNext question