A Generative AI Engineer is testing a simple prompt template in LangChain using the code below, but is getting an error: Python from langchain.chains import LLMChain from langchain_community.llms import OpenAI from langchain_core.prompts import PromptTemplate prompt_template = " Tell me a {adjective} joke " prompt = PromptTemplate(input_variables=[ " adjective " ], template=prompt_template) # ... (Error-prone section) Assuming the API key was properly defined, what change does the Generative AI Engineer need to make to fix their chain?
Select one answer.
Purchase Full Access to view answer options & explanation
The first 77 questions in this bank are completely free. Unlock Full Access on the exam page to view all answer choices, verified answers, explanations, and community discussions for all 254 questions.