Learning Timeline
Key Insights
Tips for Avoiding Hallucinations
To prevent the AI from 'making things up,' provide specific instructions within the prompt for the AI to state 'Information not available' if Milestones or Medical Status are not explicitly mentioned in the source text.
Milestone Retention Strategy
Use the 'Incremental Summarization' technique, where previous summaries are periodically merged with new input to ensure that facts from the beginning of the conversation are not overwhelmed by the latest information.
Use-Case Alignment
Finding the right balance! Ensure the summary compression ratio matches your specific use-case; in medical fields, prioritize precision over brevity.
Prompts
Memory Retention & Summarization Prompt
Target:
GPT-4 / Claude 3.5 Sonnet
Summarize the following conversation between a user and an AI medical assistant.
RULES:
1. PERSIST all identified medical statuses and medication names.
2. DO NOT omit any 'milestone' or progress updates regarding the user's issue.
3. Identify and categorize information into: [Current Status], [Action Items], and [Resolved Milestones].
4. If information is ambiguous, list it as 'Unverified' instead of making assumptions to avoid hallucinations.
Input Text: {{conversation_history}}
Step by Step
Steps for Setting Up AI Agent Memory Summarization Prompts
- Open the prompt editor interface on your chosen AI platform (such as Claude Workbench or ChatGPT Playground).
- Define the memory structure by dividing information zones into: Session Summary, Medical Status, and Problem Milestones.
- Insert specific 'System Prompt' instructions to prevent the AI from omitting technical details or critical facts.
- Apply the 'Balance of Techniques' approach to ensure a balance between text summarization and the retention of the original context.
- Test the prompt using real conversation data to check for missing critical information or potential hallucinations.
- Access the 'Resources Section' to download 'Cookbooks' as an additional reference for more advanced summarization techniques.
- Click 'Save' or store the prompt configuration within your project repository.