Lexical retrieval first
Infrastructure errors share exact tokens with runbooks. BM25 keeps the first stage transparent, fast, offline-testable, and free of embedding infrastructure.
Applied AI and reliability engineering
Grounded incident guidance with deterministic retrieval evidence.
01
The assistant turns an alert, log excerpt, or stack trace into a structured triage. A dependency-free BM25 stage retrieves relevant runbooks, then Claude is designed to return a typed root cause, severity, remediation plan, commands, citations, and escalation guidance.
02
Alert, error, log excerpt, or stack trace
Ranked lookup across seven infrastructure runbooks
Prompt grounded in the top retrieved runbooks
Root cause, severity, steps, commands, citations
Text equivalent: the stages above flow from left to right, with each stage passing its result to the next.
03
Infrastructure errors share exact tokens with runbooks. BM25 keeps the first stage transparent, fast, offline-testable, and free of embedding infrastructure.
A Pydantic schema makes the model response usable by a CLI, interface, ticket, or future integration without brittle text parsing.
The retrieval interface can accept a semantic implementation later without changing the triage engine.
04
$ python -m pytest
16 passed in 0.17s
$ python evals/run_evals.py
hit@3: 10/10 (100%) · MRR: 1.000
△ live Claude evaluation pending credential05
Next step