LangChain - Prompt Templates
Given the following code, what will be the output of
result?
from langchain import PromptTemplate, LLMChain
prompt1 = PromptTemplate(template="Hello {name}")
prompt2 = PromptTemplate(template="How are you, {name}?")
chain = LLMChain(prompt=prompt1)
output1 = chain.run(name="Alice")
chain.prompt = prompt2
result = chain.run(name="Alice")