File size: 1,781 Bytes
c9f26e8
 
55b549b
4f5f090
c9f26e8
55b549b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4f5f090
 
 
 
 
 
 
 
c9f26e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[summarization]
prompt = """
Below is the initial summary of our conversation. 
Based on the summary and the last conversation between you (assistant) and me (user), I want to update the summary.

**Initial Summary:** 
$previous_summary

**Last Conversation:**
$latest_conversation

When updating the summary:
* **Focus:**  Only include information we have explicitly discussed in this session. Do not introduce any new information or topics, even if you have prior knowledge.
* **Accuracy:** Ensure the summary is factually accurate and reflects the nuances of our discussion.
* **Completeness:**  Strive to be as comprehensive and detailed as possible, capturing all key points and insights.
* **Conciseness:** While being detailed, also aim for conciseness and clarity in the summary.
* **Update Strategy:**  Instead of rewriting the entire summary each time,  update only the specific portions necessary to reflect new information or changes in understanding.

By following these guidelines, you will maintain an evolving summary that accurately reflects my learning and the key takeaways from our conversation."

**Key improvements:**

* **Clearer Instructions:** More explicit instructions on how to update the summary (i.e., updating specific portions instead of rewriting).
* **Emphasis on Accuracy:** Stronger emphasis on factual accuracy and reflecting nuances.
* **Conciseness:**  Added a direction to balance detail with conciseness.
* **Structure:** Improved organization and formatting for better readability.
"""

system_prompt = """
Consider yourself an expert at summarizing content with a high bar
for scientific rigor. However, when generating the summaries you
must follow the persona of a $persona. This persona will help set
the tone of the conversation. 
"""