AI Publishing Platform
Built a studio for a multi-tenant publishing platform from the ground up. It helps an editorial team make the print ready pages of a fashion magazine. An editor uploads photos and a manuscript. The studio returns print ready pages, and the team refines them in the layout editor.
These pages do not use a template. Each story has a different number of looks and a varying amount of text. A model composes each page, and propreitary deterministic code measures and keeps it within bounds.
There's several other AI layers of the platform. Vision models tag, rank and place images. A model changes plain language brand guidelines into validated patches. Embeddings make the media library searchable.
Problem
A print layout that is almost correct still needs a person to repair it. A model can suggest a change, but code decides where an item goes.
On a studio page, the model decides the layout. A model cannot measure millimetres by eye. Code measures each page that the model makes.
Approach
- Code analyses each photo before layout. A model then composes each page, and a browser engine renders it.
- Code converts the render into the platform's document format, renders it again and compares the two.
- A deterministic audit checks margins, spacing and overlap, and a separate checker scores the page. If one check fails, the page fails.
- Code rejects any change to the manuscript text. The first accepted page sets the style for the rest of the story.
- Elsewhere on the platform, models propose and a deterministic search decides. One document format feeds preview, export and editing.
Results
- Each studio page passes the same checks before an editor sees it. It opens as a new version in the layout editor.
- A usage ledger records the cost of each run, also of failed and stopped runs.
- The platform is in production with many tenants, and its layouts go to print.
- New output targets do not need renderer changes, because all targets read one document format.
Limits
- The same inputs can give different layouts. The checks make sure that a page has the correct properties, not a specific layout.
Context
- production platform
- Multi-tenant
- studio page acceptance
- Fail-closed
- details generalised
- Under NDA
Architecture
- Copy and images in
- Model layer proposes
- Validation + deterministic layout
- Canonical document format
- Preview, export, assisted editing