nerdexam
Databricks

GENERATIVE-AI-ENGINEER-ASSOCIATE · Question #36

A Generative AI Engineer is using LangChain to assist a museum in classifying documents and using this code: Their code results in an error. What do they need to change in order to fix this template?

Sign in or unlock GENERATIVE-AI-ENGINEER-ASSOCIATE to reveal the answer and full explanation for question #36. The question stem and answer options stay visible for context.

Generative AI Application Development

Question

A Generative AI Engineer is using LangChain to assist a museum in classifying documents and using this code:

Their code results in an error. What do they need to change in order to fix this template?

Exhibit

GENERATIVE-AI-ENGINEER-ASSOCIATE question #36 exhibit

Options

  • AProvide an LLM argument to PromptTemplate()
  • BProvide template and LLM arguments to PromptTemplate()
  • COmit PromptTemplate(), it is only used for multi-part templates
  • DProvide a template argument to PromptTemplate()

Unlock GENERATIVE-AI-ENGINEER-ASSOCIATE to see the answer

You've previewed enough free GENERATIVE-AI-ENGINEER-ASSOCIATE questions. Unlock GENERATIVE-AI-ENGINEER-ASSOCIATE for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#LangChain#Prompt Engineering#PromptTemplate#GenAI Application Development
Full GENERATIVE-AI-ENGINEER-ASSOCIATE Practice