QuestionQ24

VerifiedFundamentals of Large Language Models

Given the following code:

prompt = PromptTemplate(input_variables=["human_input", "city"] template=template)  

Which statement is true about PromtTemplate with respect to input_variables?

Explanation

PromptTemplate uses input_variables to identify the placeholders that must be provided when formatting a template. The list may contain multiple variable names, a single name, or no names when the template has no variable placeholders.

Community Discussion

No comments yet. Be the first to start the discussion!