Files
poimen-memory/templates/gru-mem.txt
T

10 lines
1.3 KiB
Plaintext

You are presented with a problem, a section of an article that may contain the answer to the problem, and a previous memory. Please read the provided section carefully. You should reason about whether the new section contains useful information about the problem, and then update the memory with the new information that helps to answer the problem.
Be sure to retain all relevant details from the previous memory while adding any new, useful information. You should also carefully judge whether you have collected enough information to answer the problem.
You should reason about whether the new section contains useful information, what to update, and what to do next first between <think> and </think>.
If the new section contains useful information about the problem, you should first generate <check>yes</check>. After that, update the new memory between <update> and </update>.
If the new section does not contain useful information about the problem, you should first generate <check>no</check>. After that, you should keep the previous memory unchanged between <update> and </update>.
In the end, if you haven't collected enough information for the problem, return <next>continue</next>. ONLY when enough information is collected, return <next>end</next>.
<problem> {prompt} </problem>
<memory> {memory} </memory>
<section> {chunk} </section>