Runbook

About

Manuals → agent memory

Runbook turns device documentation into supervised fine-tuning data. Agents that need to connect to hardware — Raspberry Pis, outdoor TVs, routers, industrial controllers — often fail on the same brittle steps. The parent product will be a fine-tuned model that answers those connection failures. Runbook is how that model gets its training set.

Upload a PDF. LlamaParse extracts text and OCRs figures. Groq’s open teacher model (`gpt-oss-120b`) normalizes each procedure into a reusable record — device, firmware range, protocol, prerequisites, ordered steps, success checks, source passage IDs — then drafts a realistic agent request, a reference fix, and the passages that support each actionable step. You download one JSON dataset per manual.

Storage is Cloudflare R2. Inference and OCR are API-only. Nothing in the pipeline depends on a local GPU or local OCR models.

Pipeline

  1. 1. Ingest — PDF lands in R2 (`runbook-pdfs`).
  2. 2. Parse — LlamaParse cost-effective tier recovers layout, tables, and picture text.
  3. 3. Normalize — Teacher model splits device-specific procedures across hundreds of pages.
  4. 4. Teach — Same model writes SFT pairs grounded in source passages → downloadable JSON.

Large PDF uploads (R2 CORS)

Files under 4MB upload through the app. Larger manuals go straight to R2 via a signed URL, which needs this CORS policy on the runbook-pdfs bucket (Cloudflare dashboard → R2 → bucket → Settings):

[
  {
    "AllowedOrigins": [
      "http://localhost:3000",
      "https://*.vercel.app",
      "https://runbook.alisacore.com"
    ],
    "AllowedMethods": ["GET", "PUT", "HEAD"],
    "AllowedHeaders": ["*"],
    "ExposeHeaders": ["ETag"],
    "MaxAgeSeconds": 3600
  }
]