[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. Bullet points with Markdown would be preferred. | |
""" |