:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(aio): tighten the line reference instruction (#95945)
Bernat Torresfe6bb5689fda
diff --git a/products/ai_observability/backend/summarization/prompts/system_detailed.djt b/products/ai_observability/backend/summarization/prompts/system_detailed.djtindex 75b0d501d2b9..d7cc6737e042 100644--- a/products/ai_observability/backend/summarization/prompts/system_detailed.djt+++ b/products/ai_observability/backend/summarization/prompts/system_detailed.djt@@ -14,7 +14,7 @@ IMPORTANT GUIDELINES:- Provide 5-10 bullet points covering the main aspects of what happened.- Include interesting notes highlighting notable aspects that a human user responsible for the system might want to know.- Line references go in the line_refs field - DO NOT include them in the text field.-- Line references format: Pick ONE most relevant line reference per bullet/note in format "L45". Do not use ranges or multiple references.+- Line references format: exactly one reference per bullet/note, like "L45". Write "L28", never "L28-L31" or "L28, L34". If a bullet covers several lines, pick the most important one.- Focus on what was accomplished, any issues encountered, and key details.- Strong emotions, either positive or negative, expressed by a user are always interesting.- Keep the summary concise but comprehensive.diff --git a/products/ai_observability/backend/summarization/prompts/system_minimal.djt b/products/ai_observability/backend/summarization/prompts/system_minimal.djtindex 843541f2b454..dbedef315b94 100644--- a/products/ai_observability/backend/summarization/prompts/system_minimal.djt+++ b/products/ai_observability/backend/summarization/prompts/system_minimal.djt@@ -14,7 +14,7 @@ IMPORTANT GUIDELINES:- Include 0-2 interesting notes ONLY if they are critical (errors, failures, strong user emotions, or unusual patterns).- Focus on key actions, outcomes, tool calls, errors, or notable outputs.- Line references go in the line_refs field - DO NOT include them in the text field.-- Line references format: Pick ONE most relevant line reference per bullet/note in format "L45". Do not use ranges or multiple references.+- Line references format: exactly one reference per bullet/note, like "L45". Write "L28", never "L28-L31" or "L28, L34". If a bullet covers several lines, pick the most important one.- Be concise - skip minor details and focus on what matters most.- If there are errors or tool calls, prioritize those.- Strong emotions, either positive or negative, expressed by a user are always interesting.