Insight prompt tweaks
This commit is contained in:
@@ -1350,7 +1350,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
- Emotional tone and relationship dynamics
|
- Emotional tone and relationship dynamics
|
||||||
- Any significant details that provide context about what was happening
|
- Any significant details that provide context about what was happening
|
||||||
|
|
||||||
Be thorough but organized. Use 1-2 paragraphs.
|
Be thorough but organized.
|
||||||
|
|
||||||
Messages:
|
Messages:
|
||||||
{}
|
{}
|
||||||
@@ -2561,13 +2561,12 @@ Return ONLY the summary, nothing else."#,
|
|||||||
"You are a personal photo memory assistant helping to reconstruct a memory from a photo.{cameron_id_note}\n\n\
|
"You are a personal photo memory assistant helping to reconstruct a memory from a photo.{cameron_id_note}\n\n\
|
||||||
IMPORTANT INSTRUCTIONS:\n\
|
IMPORTANT INSTRUCTIONS:\n\
|
||||||
1. You MUST call multiple tools to gather context BEFORE writing any final insight. Do not produce a final answer after only one or two tool calls.\n\
|
1. You MUST call multiple tools to gather context BEFORE writing any final insight. Do not produce a final answer after only one or two tool calls.\n\
|
||||||
2. Always call ALL of the following tools that are relevant: search_rag (search conversation summaries), get_sms_messages (fetch nearby messages), get_calendar_events (check what was happening that day), get_location_history (find where this was taken), get_file_tags (retrieve tags).\n\
|
2. When calling get_sms_messages and search_rag, always make at least one call WITHOUT a contact filter to capture what else was happening in Cameron's life around this date — other conversations, events, and activities provide important wider context even when a specific contact is known.\n\
|
||||||
3. When calling get_sms_messages and search_rag, always make at least one call WITHOUT a contact filter to capture what else was happening in Cameron's life around this date — other conversations, events, and activities provide important wider context even when a specific contact is known.\n\
|
3. Use recall_facts_for_photo to load any previously stored knowledge about subjects in this photo.\n\
|
||||||
4. Use recall_facts_for_photo to load any previously stored knowledge about subjects in this photo.\n\
|
4. Use recall_entities to look up known people, places, or things that appear in this photo.\n\
|
||||||
5. Use recall_entities to look up known people, places, or things that appear in this photo.\n\
|
5. When you identify people, places, events, or notable things in this photo: use store_entity to record them and store_fact to record key facts (relationships, roles, attributes). This builds a persistent memory for future insights.\n\
|
||||||
6. When you identify people, places, events, or notable things in this photo: use store_entity to record them and store_fact to record key facts (relationships, roles, attributes). This builds a persistent memory for future insights.\n\
|
6. Only produce your final insight AFTER you have gathered context from at least 5-12 tool calls.\n\
|
||||||
7. Only produce your final insight AFTER you have gathered context from at least 3-4 tools.\n\
|
7. If a tool returns no results, that is useful information — continue calling the remaining tools anyway.",
|
||||||
8. If a tool returns no results, that is useful information — continue calling the remaining tools anyway.",
|
|
||||||
cameron_id_note = cameron_id_note
|
cameron_id_note = cameron_id_note
|
||||||
);
|
);
|
||||||
let system_content = if let Some(ref custom) = custom_system_prompt {
|
let system_content = if let Some(ref custom) = custom_system_prompt {
|
||||||
@@ -2600,7 +2599,7 @@ Return ONLY the summary, nothing else."#,
|
|||||||
.unwrap_or_else(|| "Contact/Person: unknown".to_string());
|
.unwrap_or_else(|| "Contact/Person: unknown".to_string());
|
||||||
|
|
||||||
let user_content = format!(
|
let user_content = format!(
|
||||||
"Please analyze this photo and gather context to write an insight.\n\n\
|
"Please analyze this photo and gather any relevant context from the surrounding weeks.\n\n\
|
||||||
Photo file path: {}\n\
|
Photo file path: {}\n\
|
||||||
Date taken: {}\n\
|
Date taken: {}\n\
|
||||||
{}\n\
|
{}\n\
|
||||||
|
|||||||
Reference in New Issue
Block a user