You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: evaluation/scripts/locomo/prompts.py
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,3 @@
1
-
importos
2
-
3
-
4
-
PREF_INSTRUCTIONS="""
5
-
# Note:
6
-
Plaintext memory are summaries of facts, while preference memories are summaries of user preferences.
7
-
Your response must not violate any of the user's preferences, whether explicit or implicit, and briefly explain why you answer this way to avoid conflicts.
8
-
When encountering preference conflicts, the priority is: explicit preference > implicit preference > plaintext memory.
9
-
"""
10
-
11
-
12
1
ANSWER_PROMPT_MEM0="""
13
2
You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories.
14
3
@@ -114,18 +103,14 @@
114
103
5. Formulate a precise, concise answer based on the evidence from the memories (and allowed world knowledge).
115
104
6. Double-check that your answer directly addresses the question asked and adheres to all instructions.
116
105
7. Ensure your final answer is specific and avoids vague time references.
Copy file name to clipboardExpand all lines: evaluation/scripts/utils/prompts.py
+2-11Lines changed: 2 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,3 @@
1
-
PREF_INSTRUCTIONS="""
2
-
# Note:
3
-
Plaintext memory are summaries of facts, while preference memories are summaries of user preferences.
4
-
Your response must not violate any of the user's preferences, whether explicit or implicit, and briefly explain why you answer this way to avoid conflicts.
5
-
When encountering preference conflicts, the priority is: explicit preference > implicit preference > plaintext memory.
6
-
"""
7
-
8
-
9
1
LME_ANSWER_PROMPT="""
10
2
You are an intelligent memory assistant tasked with retrieving accurate information from conversation memories.
11
3
@@ -25,7 +17,7 @@
25
17
5. Formulate a precise, concise answer based solely on the evidence in the memories.
26
18
6. Double-check that your answer directly addresses the question asked.
27
19
7. Ensure your final answer is specific and avoids vague time references.
28
-
{pref_instructions}
20
+
29
21
{context}
30
22
31
23
Current Date: {question_date}
@@ -55,7 +47,7 @@
55
47
- Your final answer **must use parentheses**, like (a) or (b).
56
48
- Do NOT list multiple choices. Choose only one.
57
49
- Do NOT include extra text after <final_answer>. Just output the answer.
58
-
{pref_instructions}
50
+
59
51
# QUESTION:
60
52
{question}
61
53
@@ -71,7 +63,6 @@
71
63
You are a helpful AI. Answer the question based on the query and the following memories:
0 commit comments