Guide: Structured extraction¶
What is this?¶
Pull typed fields (facts[]) when a playbook defines a knowledge schema.
When should I use it?¶
You need fields (price, version, author) — not just prose Markdown.
Minimal flow¶
occam_playbook_resolve(url)
→ if schema present → occam_extract_knowledge(url)
→ else → occam_transcode(url) for prose
Expected result¶
facts[]plus metadata such asmeta.koIdwhen the schema applies.confidence— heuristic extraction confidence, not a correctness guarantee.receipt— extraction telemetry only (confidence,elapsedMs). This is not Occam Receipt v1: nocontentHash, no signature,occam_verifydoes not accept it. For signed integrity, useoccam_transcodeoroccam_claim_checkon the same URL.
Session note¶
occam_extract_knowledge is Tier 1 for sessions: HTTP headers and Playwright storageState both apply (browser fallback uses storageState). See Guide: sessions.
What can go wrong?¶
No schema → use transcode. Bad selectors → playbook heal/lint/save (authoring path only).