rca_narrate
Generates plain-language narratives for root-cause analysis (RCA) verdicts via a local, air-gapped LLM, rephrasing only the cited findings—no new causes or data.
Instructions
[READ][risk=low] Narrate a cited RCA verdict in plain language via an on-box LLM.
Air-gapped: hands the already-computed, already-cited verdict to a LOCAL model (Ollama) that
ONLY rephrases it — it never adds a cause, number, or citation (strict prompt; see docs/RCA.md).
Read-only; no device I/O. Needs the extra + a running local model: pip install iaiops[ollama].
Args:
verdict: An RCA verdict dict (e.g. the output of downtime_root_cause).
base_url: Ollama server URL (default http://localhost:11434).
model: Local model name (default 'llama3.1').
provider: LLM provider (currently 'ollama').
Returns dict: {provider, model, narration}.
Example: rca_narrate(verdict=<downtime_root_cause output>, model="llama3.1").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | llama3.1 | |
| verdict | Yes | ||
| base_url | No | http://localhost:11434 | |
| provider | No | ollama |