[Coati] Refine prompt for better inference (#6117)
* refine prompt
* update prompt
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
# Simple answer as root. You can also use negative response such as "I do not know" as a response.
base_answer=self.sample_base_answer()
base_answer=self.sample_base_answer()
self.root=MCTSNode(answer=base_answer)
self.root=MCTSNode(answer=base_answer)
self.self_evaluate(self.root)
self.self_evaluate(self.root)
@ -190,7 +190,7 @@ class MCTS(BaseModel):
messages=[
messages=[
{
{
"role":"system",
"role":"system",
"content":"The user will provide a problem. Solve the problem. The response should begin with [reasoning process]...[Verification]... and end with [Final Answer]. \nThe answer is [answer] \n#### [answer].",
@ -7,14 +7,16 @@ from coati.reasoner.guided_search.prompt_store.base import PromptCFG
Qwen32B_prompt_CFG=PromptCFG(
Qwen32B_prompt_CFG=PromptCFG(
base_url="http://0.0.0.0:8008/v1",
base_url="http://0.0.0.0:8008/v1",
model="Qwen2.5-32B-Instruct",
model="Qwen2.5-32B-Instruct",
critic_system_prompt="Provide a detailed and constructive critique to improve the answer. "
base_system_prompt="The user will present a problem. Analyze and solve the problem in the following structure:\n"
"Highlight specific areas that need refinement or correction.",
"Begin with [Reasoning Process] to explain the approach. \n Proceed with [Verification] to confirm the solution. \n Conclude with [Final Answer] in the format: 'Answer: [answer]'",
critic_system_prompt="Provide a detailed and constructive critique of the answer, focusing on ways to improve its clarity, accuracy, and relevance."
"Highlight specific areas that need refinement or correction, and offer concrete suggestions for enhancing the overall quality and effectiveness of the response.",