2026-10-29 · Detailed tables of contents, and correcting existing text

2026-10-29 · Detailed tables of contents, and correcting existing text

Context

Two of iwac-ai-pipelines’ pipelines serve researchers well beyond the Islam West Africa Collection. AI_summary_issue indexes a magazine issue: a vision model reads each page for its articles (title, authors, “continued on page X”, a short summary), then a cheaper model combines the pages into one entry per article with all its pages. AI_ocr_correction corrects the OCR of newspaper text while keeping historical spelling. Social scientists meet both needs daily: a whole newspaper issue, an archival file scanned as one PDF, a long report or thesis; and the noisy text layers of Gallica, Europeana or Internet Archive downloads. Kalamu’s analyses read each file as one document, so “several documents in one file” could only be warned about.

Decisions

Consequences

Architecture checkpoint

Dependencies still point inwards: core holds the schemas and the merge input, engine the second step (engine/src/contents.rs), export one module per rendering (export/src/contents.rs). The new tasks touched every provider only in their analysis match arms, which a provider-facing task enum would remove; with three provider kinds of call that stay stable, the or-patterns are kept.