|
|
|
@ -96,9 +96,10 @@ template = """Question: {question}
|
|
|
|
|
|
|
|
|
|
Answer: Let's think step by step."""
|
|
|
|
|
prompt = Prompt(template=template, input_variables=["question"])
|
|
|
|
|
llm_chain = LLMChain(prompt=prompt, llm=OpenAI(temperature=0))
|
|
|
|
|
llm = OpenAI(temperature=0)
|
|
|
|
|
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
|
|
|
|
|
|
|
|
|
question = "What NFL team won the Super Bowl in the year Justin Beiber was born?"
|
|
|
|
|
question = "What NFL team won the Super Bowl in the year Justin Bieber was born?"
|
|
|
|
|
|
|
|
|
|
llm_chain.predict(question=question)
|
|
|
|
|
```
|
|
|
|
|