From 13f1299af6dbb4427e45f671c18f5eb24ebd4b37 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 3 Feb 2026 11:12:23 -0300 Subject: [PATCH] atlasbot: enforce question nouns in signals --- atlasbot/llm/prompts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atlasbot/llm/prompts.py b/atlasbot/llm/prompts.py index b270d69..4f24e2f 100644 --- a/atlasbot/llm/prompts.py +++ b/atlasbot/llm/prompts.py @@ -272,6 +272,7 @@ FACT_TYPES_SYSTEM = ( FACT_TYPES_PROMPT = ( "Return JSON with field: fact_types (list of short noun phrases). " + "Include at least one entry derived directly from the question wording (verbatim nouns). " "Keep each entry short and concrete (e.g., \"node pressure flags\", \"hardware class counts\", \"postgres connections\")." ) @@ -284,7 +285,8 @@ SIGNAL_SYSTEM = ( SIGNAL_PROMPT = ( "Question: {question}\nFactTypes: {fact_types}\n" "Return JSON with field: signals (list). " - "Signals should be brief phrases or tokens that might appear in snapshot lines." + "Signals should be brief phrases or tokens that might appear in snapshot lines. " + "Always include the key nouns from the question as-is." ) CHUNK_SCAN_SYSTEM = (