Question 80
A Databricks engineer is correcting the following workflow: An agent produces raw document objects but the serving client expects a JSON list of cited answers. Which change best addresses the documented requirement?
Explanation
Correct Answer
Correct. A custom MLflow pyfunc model wraps request parsing, retriever/model invocation and output formatting inside a reproducible predict interface. In the given situation — An agent produces raw document objects but the serving client expects a JSON list of cited answers. — the targeted implement action is: Implement response serialization within the serving wrapper and validate the declared output schema. This directly meets the stated workflow constraint instead of addressing an adjacent capability.
Incorrect Answers
Not the strongest implement choice for this specific question. Deploy synchronized index definitions and validate source freshness during production cutover. This action primarily relates to CI/CD pipelines for retrieval and agent components: Production promotions should test source index, prompt, model packaging and tool behavior independently before release. However, the described case — An agent produces raw document objects but the serving client expects a JSON list of cited answers. — is testing MLflow pyfunc packaging for pre- and post-processing. 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. Use `ai_query()` against a supported endpoint in a controlled batch-inference query with result checks. This action primarily relates to SQL ai_query for governed batch inference: `ai_query()` invokes an available serving endpoint from SQL; suitability depends on supported runtimes, endpoint and workload. However, the described case — An agent produces raw document objects but the serving client expects a JSON list of cited answers. — is testing MLflow pyfunc packaging for pre- and post-processing. 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. Bundle compatible index/embedding identifiers and validate query-embedding compatibility at initialization. This action primarily relates to RAG production bundle metadata and dependencies: A deployable RAG application needs tracked model code, retriever config, embedding model, dependency versions, signature and example input. However, the described case — An agent produces raw document objects but the serving client expects a JSON list of cited answers. — is testing MLflow pyfunc packaging for pre- and post-processing. 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.