diff --git a/memory_scope/memory/worker/read/extract_time_worker.yaml b/memory_scope/memory/worker/read/extract_time_worker.yaml index 017caa8a..b44e8bbf 100644 --- a/memory_scope/memory/worker/read/extract_time_worker.yaml +++ b/memory_scope/memory/worker/read/extract_time_worker.yaml @@ -1,6 +1,9 @@ extract_time_system: cn: | - 任务指令:从语句与语句发生的时间,推断并提取语句内容中指向的时间段。回答尽可能完整的时间段。回答的格式严格遵照示例中的已有格式规范。 + 任务指令:从语句与语句发生的时间,推断并提取语句内容中指向的时间段。回答尽可能完整的时间段。回答的格式严格遵照示例中的已有格式规范。若语句不涉及时间则回答无。 + + en: | + Instructions: From the sentences and the time when they occurred, infer and extract the time periods indicated in the content of the sentences. Answer with the most complete time periods possible. The format of the answers must strictly adhere to the specifications in the examples provided. If the sentence does not involve time, respond with "none." extract_time_few_shot: @@ -47,6 +50,60 @@ extract_time_few_shot: 回答: - 年:1995 - 月:10 - 日:24 + 示例8: + 句子:我的朋友非常喜欢运动,他认为运动有助于增强身体素质。 + 时间:2015年1月23日,2015年第4周,周四,7时38分0秒。 + 回答: + 无 + + en: | + Example 1: + Sentence: I remember you went to the UAE in April the year before last. Which places in the UAE are fun? Which do you prefer, Dubai or Abu Dhabi? Are the desert views spectacular? + Time: August 20, 1992, 34th week of 1992, Monday, 18:46:25. + Answer: + - Year: 1990 - Month: 4 + + Example 2: + Sentence: Remember to attend the meeting at 3 PM the day after tomorrow. I carefully marked this important day on my calendar to remind myself not to miss it. The meeting will be held in the company conference room, and it's an important opportunity to discuss future development directions. + Time: June 19, 2024, 25th week of 2024, Tuesday, 13:30:0. + Answer: + - Year: 2024 - Month: 6 - Day: 21 - Hour: 15 + + Example 3: + Sentence: Next month on the first Saturday, let's go to Hangzhou. + Time: July 15, 2005, 28th week of 2005, Saturday, 0:0:0. + Answer: + - Year: 2005 - Month: 8 - Week: 31 - Day of Week: 6 + + Example 4: + Sentence: The small town we visited last weekend was truly beautiful. + Time: December 2, 1999, 48th week of 1999, Tuesday, 8:40:10. + Answer: + - Year: 1999 - Week: 47 - Day of Week: 6, 7 + + Example 5: + Sentence: The presentation will start in half an hour, remember to prepare the materials. + Time: June 22, 2020, 25th week of 2020, Monday, 9:30:0 + Answer: + - Year: 2020 - Month: 6 - Day: 22 - Hour: 10 - Minute: 0 - Second: 0 + + Example 6: + Sentence: The start time for the 10,000-meter race was 3 minutes and 47 seconds ago. + Time: February 17, 1987, 7th week of 1987, Wednesday, 19:54:43. + Answer: + - Year: 1987 - Month: 2 - Day: 17 - Hour: 19 - Minute: 50 - Second: 56 + + Example 7: + Sentence: At this time last month, we were still preparing for the concert. Every day was busy and fulfilling, and we worked hard for the successful holding of the concert. Rehearsals, set design, and program arrangements - every detail needed careful planning and preparation. + Time: November 24, 1995, 48th week of 1995, Tuesday, 17:45:0. + Answer: + - Year: 1995 - Month: 10 - Day: 24 + + Example 8: + Sentence: My friend loves sports very much and believes that exercise helps improve physical fitness. + Time: January 23, 2015, 4th week of 2015, Thursday, 7:38:0. + Answer: + None extract_time_user_query: @@ -55,6 +112,10 @@ extract_time_user_query: 时间:{query_time_str} 回答: + en: | + Sentence: {query} + Time: {query_time_str} + Answer: time_string_format: cn: |