Permit PDF extraction struggles when citations are inline in some packets and bibliographic in others. What helps?
Select an answer to reveal the explanation.
Short Explanation
Some permits tuck citations in the paragraph; others keep a bibliography at the end. A few examples of each layout teach the extractor not to freeze on variety.
Full Explanation
Permit PDF extraction fails when citation layouts vary—some packets embed citations inline in paragraphs, others use end bibliographies—unless the prompt teaches both shapes. Few-shot examples covering inline citations versus bibliography layouts give Claude concrete patterns for locating, normalizing, and emitting references without freezing on departmental format diversity.
Training only on a single layout and rejecting every other packet fails because municipal permit archives are heterogeneous by nature; rejection creates backlog instead of extraction. Ignoring citation structure and inventing references when unsure fails as data integrity: fabricated citations corrupt legal and planning records. Disabling extraction whenever layouts differ across departments fails operationally; layout variance is expected, so the system must generalize rather than shut down.
Exam caveat: layout few-shots improve structural robustness; they do not OCR poorly scanned pages or prove legal sufficiency of a citation string—downstream validation may still be required. Operational check: add at least one inline and one bibliography exemplar to the extract prompt, run a mixed-department packet sample, and confirm citation fields populate without invented references.