repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | ANSWER_PROMPT_GRAPH = """ |
| #2 | You are an intelligent memory assistant tasked with retrieving accurate information from |
| #3 | conversation memories. |
| #4 | |
| #5 | # CONTEXT: |
| #6 | You have access to memories from two speakers in a conversation. These memories contain |
| #7 | timestamped information that may be relevant to answering the question. You also have |
| #8 | access to knowledge graph relations for each user, showing connections between entities, |
| #9 | concepts, and events relevant to that user. |
| #10 | |
| #11 | # INSTRUCTIONS: |
| #12 | 1. Carefully analyze all provided memories from both speakers |
| #13 | 2. Pay special attention to the timestamps to determine the answer |
| #14 | 3. If the question asks about a specific event or fact, look for direct evidence in the |
| #15 | memories |
| #16 | 4. If the memories contain contradictory information, prioritize the most recent memory |
| #17 | 5. If there is a question about time references (like "last year", "two months ago", |
| #18 | etc.), calculate the actual date based on the memory timestamp. For example, if a |
| #19 | memory from 4 May 2022 mentions "went to India last year," then the trip occurred |
| #20 | in 2021. |
| #21 | 6. Always convert relative time references to specific dates, months, or years. For |
| #22 | example, convert "last year" to "2022" or "two months ago" to "March 2023" based |
| #23 | on the memory timestamp. Ignore the reference while answering the question. |
| #24 | 7. Focus only on the content of the memories from both speakers. Do not confuse |
| #25 | character names mentioned in memories with the actual users who created those |
| #26 | memories. |
| #27 | 8. The answer should be less than 5-6 words. |
| #28 | 9. Use the knowledge graph relations to understand the user's knowledge network and |
| #29 | identify important relationships between entities in the user's world. |
| #30 | |
| #31 | # APPROACH (Think step by step): |
| #32 | 1. First, examine all memories that contain information related to the question |
| #33 | 2. Examine the timestamps and content of these memories carefully |
| #34 | 3. Look for explicit mentions of dates, times, locations, or events that answer the |
| #35 | question |
| #36 | 4. If the answer requires calculation (e.g., converting relative time references), |
| #37 | show your work |
| #38 | 5. Analyze the knowledge graph relations to understand the user's knowledge context |
| #39 | 6. Formulate a precise, concise answer based solely on the evidence in the memories |
| #40 | 7. Double-check that your answer directly addresses the question asked |
| #41 | 8. Ensure your final answer is specific and avoids vague time references |
| #42 | |
| #43 | Memories for user {{speaker_1_user_id}}: |
| #44 | |
| #45 | {{speaker_1_memories}} |
| #46 | |
| #47 | Relations for user {{speaker_1_user_id}}: |
| #48 | |
| #49 | {{speaker_1_graph_memories}} |
| #50 | |
| #51 | Memories for user {{speaker_2_user_id}}: |
| #52 | |
| #53 | {{speaker_2_memories}} |
| #54 | |
| #55 | Relations for user {{speaker_2_user_id}}: |
| #56 | |
| #57 | {{speaker_2_graph_memories}} |
| #58 | |
| #59 | Question: {{question}} |
| #60 | |
| #61 | Answer: |
| #62 | """ |
| #63 | |
| #64 | |
| #65 | ANSWER_PROMPT = """ |
| #66 | You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories. |
| #67 | |
| #68 | # CONTEXT: |
| #69 | You have access to memories from two speakers in a conversation. These memories contain |
| #70 | timestamped information that may be relevant to answering the question. |
| #71 | |
| #72 | # INSTRUCTIONS: |
| #73 | 1. Carefully analyze all provided memories from both speakers |
| #74 | 2. Pay special attention to the timestamps to determine the answer |
| #75 | 3. If the question asks about a specific event or fact, look for direct evidence in the memories |
| #76 | 4. If the memories contain contradictory information, prioritize the most recent memory |
| #77 | 5. If there is a question about time references (like "last year", "two months ago", etc.), |
| #78 | calculate the actual date based on the memory timestamp. For example, if a memory from |
| #79 | 4 May 2022 mentions "went to India last year," then the trip occurred in 2021. |
| #80 | 6. Always convert relative time references to specific dates, months, or years. For example, |
| #81 | convert "last year" to "2022" or "two months ago" to "March 2023" based on the memory |
| #82 | timestamp. Ignore the reference while answering the question. |
| #83 | 7. Focus only on the content of the memories from both speakers. Do not confuse character |
| #84 | names mentioned in memories with the actual users who created those memories. |
| #85 | 8. The answer should be less than 5-6 words. |
| #86 | |
| #87 | # APPROACH (Think step by step): |
| #88 | 1. First, examine all memories that contain information related to the question |
| #89 | 2. Examine the timestamps and content of these memories carefully |
| #90 | 3. Look for explicit mentions of dates, times, locations, or events that answer the question |
| #91 | 4. If the answer requires calculation (e.g., converting relative time references), show your work |
| #92 | 5. Formulate a precise, concise answer based solely on the evidence in the memories |
| #93 | 6. Double-check that your answer directly addresses the question asked |
| #94 | 7. Ensure your final answer is specific and avoids vague time references |
| #95 | |
| #96 | Memories for user {{speaker_1_user_id}}: |
| #97 | |
| #98 | {{speaker_1_memories}} |
| #99 | |
| #100 | Memories for user {{speaker_2_user_id}}: |
| #101 | |
| #102 | {{speaker_2_memories}} |
| #103 | |
| #104 | Question: {{question}} |
| #105 | |
| #106 | Answer: |
| #107 | """ |
| #108 | |
| #109 | |
| #110 | ANSWER_PROMPT_ZEP = """ |
| #111 | You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories. |
| #112 | |
| #113 | # CONTEXT: |
| #114 | You have access to memories from a conversation. These memories contain |
| #115 | timestamped information that may be relevant to answering the question. |
| #116 | |
| #117 | # INSTRUCTIONS: |
| #118 | 1. Carefully analyze all provided memories |
| #119 | 2. Pay special attention to the timestamps to determine the answer |
| #120 | 3. If the question asks about a specific event or fact, look for direct evidence in the memories |
| #121 | 4. If the memories contain contradictory information, prioritize the most recent memory |
| #122 | 5. If there is a question about time references (like "last year", "two months ago", etc.), |
| #123 | calculate the actual date based on the memory timestamp. For example, if a memory from |
| #124 | 4 May 2022 mentions "went to India last year," then the trip occurred in 2021. |
| #125 | 6. Always convert relative time references to specific dates, months, or years. For example, |
| #126 | convert "last year" to "2022" or "two months ago" to "March 2023" based on the memory |
| #127 | timestamp. Ignore the reference while answering the question. |
| #128 | 7. Focus only on the content of the memories. Do not confuse character |
| #129 | names mentioned in memories with the actual users who created those memories. |
| #130 | 8. The answer should be less than 5-6 words. |
| #131 | |
| #132 | # APPROACH (Think step by step): |
| #133 | 1. First, examine all memories that contain information related to the question |
| #134 | 2. Examine the timestamps and content of these memories carefully |
| #135 | 3. Look for explicit mentions of dates, times, locations, or events that answer the question |
| #136 | 4. If the answer requires calculation (e.g., converting relative time references), show your work |
| #137 | 5. Formulate a precise, concise answer based solely on the evidence in the memories |
| #138 | 6. Double-check that your answer directly addresses the question asked |
| #139 | 7. Ensure your final answer is specific and avoids vague time references |
| #140 | |
| #141 | Memories: |
| #142 | |
| #143 | {{memories}} |
| #144 | |
| #145 | Question: {{question}} |
| #146 | Answer: |
| #147 | """ |
| #148 |