diff --git a/memory_scope/memory/worker/write/contra_repeat_worker.yaml b/memory_scope/memory/worker/write/contra_repeat_worker.yaml index cd31fc76..cb8422e9 100644 --- a/memory_scope/memory/worker/write/contra_repeat_worker.yaml +++ b/memory_scope/memory/worker/write/contra_repeat_worker.yaml @@ -1,11 +1,18 @@ contra_repeat_system: cn: | 对下面的{num_obs}句句子,逐一判断是否与“前面序号”的任意句子存在信息的矛盾,或者句子的主要信息被“前面序号”的任意句子中的信息包含。只判断与“前面序号”的句子的关系。 - 对每个句子都做一个判断,最后一共输出{num_obs}行判断。 + 对每个句子都做一个判断,最后一共输出{num_obs}条判断。 请一步步思考,并按如下格式输出: 思考:思考的依据和过程,30字以内。 判断:<句子序号> <矛盾,被包含,无>,一定加<> + en: | + For the following {num_obs} sentences, determine one by one if there is any contradiction with the information in any "previously numbered" sentences, or if the main information of the sentence is contained within the information of any "previously numbered" sentences. Only evaluate the relation to "previously numbered" sentences. + Make an evaluation for each sentence, resulting in a total of {num_obs} evaluations. + Please think step by step and output in the following format: + Thought: The basis and process of the thought, within 30 words. + Evaluation: , enclosed in <>. + contra_repeat_few_shot: cn: | @@ -50,8 +57,54 @@ contra_repeat_few_shot: 思考:第6句中所有信息都被前面序号中第5句的信息完全包含。 判断:<2> <被包含> + en: | + Example 1 + Sentences: + 1 {user_name} suffers from insomnia frequently and is interested in the effects of sleeping pills, suggesting a possible consideration of their use. + 2 {user_name} suffers from insomnia frequently and seeks remedies. + 3 Charles is {user_name}'s supervisor. + 4 Charles is {user_name}'s supervisor. + 5 Charles is {user_name}'s supervisor and the branch manager of a bank. + Thought: The first sentence does not have any contradictions or complete repetitions with the previously numbered sentences. + Evaluation: <1> + Thought: All information in the second sentence is completely contained within the information of the first sentence. + Evaluation: <2> + Thought: The information in the third sentence does not appear in the previously numbered sentences. + Evaluation: <3> + Thought: The fourth sentence is completely repetitive of the information in the third sentence, i.e., it is completely contained. + Evaluation: <4> + Thought: The information that Charles is {user_name}'s supervisor in the fifth sentence is contained within the information of the third sentence, but the new information that Charles is the branch manager of a bank is not, so it is not contained. + Evaluation: <5> + + Example 2 + Sentences: + 1 {user_name}'s child does not perform well academically. + 2 {user_name}'s child often skips school. + 3 {user_name}'s father's birthday is on June 2, 2024, and {user_name} plans to prepare a gift. + 4 {user_name}'s father's birthday is on May 1, 2024. + 5 {user_name} loves playing basketball with classmates. + 6 {user_name} likes playing basketball. + + Thought: The first sentence does not have any contradictions or complete repetitions with the previously numbered sentences. + Evaluation: <1> + Thought: The second sentence neither contradicts nor repeats any of the previously numbered sentences. + Evaluation: <2> + Thought: The third sentence neither contradicts nor repeats any of the previously numbered sentences. + Evaluation: <3> + Thought: The date of {user_name}'s father's birthday in the fourth sentence contradicts the information in the third sentence. + Evaluation: <4> + Thought: The fifth sentence neither contradicts nor repeats any of the previously numbered sentences. + Evaluation: <5> + Thought: All information in the sixth sentence is completely contained within the information of the fifth sentence. + Evaluation: <6> + + contra_repeat_user_query: cn: | 句子: {user_query} + + en: | + Sentences: + {user_query}