Skip to content

Commit

Permalink
fix: summary prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Dec 2, 2024
1 parent f6f410e commit 563c56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/textGeneration/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function* generate(
}\n\nReasoning: ${reasoningBuffer}`,
},
],
preprompt: `Your task is to summarize concisely all your reasoning steps and then give the final answer. Keep it short, one short paragraph at most. If the final solution includes code, make sure to include it in your answer.
preprompt: `Your task is to summarize concisely all your reasoning steps and then give the final answer. Keep it short, one short paragraph at most. If the reasoning steps explicitly include a code solution, make sure to include it in your answer.
If the user is just having a casual conversation that doesn't require explanations, answer directly without explaining your steps, otherwise make sure to summarize step by step, make sure to skip dead-ends in your reasoning and removing excess detail.
Expand Down

0 comments on commit 563c56e

Please sign in to comment.