🔥 3-day streak
Databricks Certified Generative AI Engineer Associate62 / 145
Question 62 of 145

A Generative AI Engineer builds a LangChain chain on Databricks that extracts contact details (name, email, phone) from customer inquiry emails. The LLM is instructed to return the details, and the extracted values must be passed to a downstream Python function that expects a validated dictionary with those three keys. Currently the chain returns raw text from the model, and the downstream function frequently fails when the model adds explanatory prose or inconsistent formatting. Which change most directly addresses this problem within the LangChain chain?

Reviewed for accuracy · Report an issueNext question