From c531dfd1d736a2f0124e6d491d2d4ad61413e278 Mon Sep 17 00:00:00 2001 From: David Whittaker Date: Fri, 17 Jan 2025 15:42:40 -0800 Subject: [PATCH 1/2] feat(ai): tune prompt for incident summary --- src/dispatch/incident/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dispatch/incident/service.py b/src/dispatch/incident/service.py index 6667c3e107ac..bdcef855fa6a 100644 --- a/src/dispatch/incident/service.py +++ b/src/dispatch/incident/service.py @@ -482,6 +482,7 @@ def generate_incident_summary(*, db_session: Session, incident: Incident) -> str Given the text of the security post-incident review document below, provide answers to the following questions in a paragraph format. Do not include the questions in your response. + Do not use any of these words in your summary: breach, unauthorized, leak, violation, unlawful, illegal. 1. What is the summary of what happened? 2. What were the overall risk(s)? 3. How were the risk(s) mitigated? From 4aa723cafde8440096a1421cf669aebeea9a1e14 Mon Sep 17 00:00:00 2001 From: David Whittaker Date: Fri, 17 Jan 2025 15:47:49 -0800 Subject: [PATCH 2/2] Further tuning prompt --- src/dispatch/incident/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/incident/service.py b/src/dispatch/incident/service.py index bdcef855fa6a..b6f19e6ca461 100644 --- a/src/dispatch/incident/service.py +++ b/src/dispatch/incident/service.py @@ -482,7 +482,7 @@ def generate_incident_summary(*, db_session: Session, incident: Incident) -> str Given the text of the security post-incident review document below, provide answers to the following questions in a paragraph format. Do not include the questions in your response. - Do not use any of these words in your summary: breach, unauthorized, leak, violation, unlawful, illegal. + Do not use any of these words in your summary unless they appear in the document: breach, unauthorized, leak, violation, unlawful, illegal. 1. What is the summary of what happened? 2. What were the overall risk(s)? 3. How were the risk(s) mitigated?