experimental[patch]: Fixed typos in SmartLLMChain ideation and critique prompts (#11507)

Noticed and fixed a few typos in the SmartLLMChain default ideation and
critique prompts

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
langchain-ai/langchain@5cbabbd
Mattt394 7 months ago committed by GitHub
parent 86d3e42853
commit 7c6009b76f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -215,7 +215,7 @@ class SmartLLMChain(Chain):
HumanMessagePromptTemplate, HumanMessagePromptTemplate,
"You are a researcher tasked with investigating the " "You are a researcher tasked with investigating the "
f"{self.n_ideas} response options provided. List the flaws and " f"{self.n_ideas} response options provided. List the flaws and "
"faulty logic of each answer options. Let'w work this out in a step" "faulty logic of each answer option. Let's work this out in a step"
" by step way to be sure we have all the errors:", " by step way to be sure we have all the errors:",
), ),
] ]
@ -229,10 +229,10 @@ class SmartLLMChain(Chain):
HumanMessagePromptTemplate, HumanMessagePromptTemplate,
"You are a resolver tasked with 1) finding which of " "You are a resolver tasked with 1) finding which of "
f"the {self.n_ideas} answer options the researcher thought was " f"the {self.n_ideas} answer options the researcher thought was "
"best,2) improving that answer and 3) printing the answer in full. " "best, 2) improving that answer and 3) printing the answer in "
"Don't output anything for step 1 or 2, only the full answer in 3. " "full. Don't output anything for step 1 or 2, only the full "
"Let's work this out in a step by step way to be sure we have " "answer in 3. Let's work this out in a step by step way to "
"the right answer:", "be sure we have the right answer:",
), ),
] ]
) )

Loading…
Cancel
Save