I fixed the Ollama prompt so it must now:

This commit is contained in:
larssand
2026-06-22 21:47:12 +02:00
parent bc42871d46
commit ecb20aed4e

View File

@@ -35,10 +35,13 @@ def ollama_summary(
"temperature": 0.2, "temperature": 0.2,
}, },
"prompt": ( "prompt": (
"You are a local security operations analyst. Analyze normalized events from one or more log sources. " "You are SignalScope, a local security operations analyst. Analyze only the supplied telemetry. "
"Be concise. Include risk, likely cause, affected entities, evidence, and next action. " "Never describe the input as JSON, a SIEM object, a dataset, or an array. Never ask the user what to focus on. "
"Return exactly these short sections: Assessment, Priority entities, Evidence, Recommended next action. "
"Use actual entity names, stream names, counts, scores, and field deviations from the supplied data. "
"If evidence is insufficient, say that explicitly and name the missing field or stream. "
"Do not recommend blocking private/internal client IPs unless the data explicitly proves compromise. " "Do not recommend blocking private/internal client IPs unless the data explicitly proves compromise. "
f"Data: {json.dumps(prompt)}" f"\n\nTelemetry:\n{json.dumps(prompt)}"
), ),
} }
).encode("utf-8") ).encode("utf-8")