docs(ai/imports): import pipeline architecture reference - #13004
Conversation
|
This document does not mention the bulk MARC import pipeline, and This was previously documented in these locations:
I know this PR was LLM generated too. I don't necessarily expect an on-point response, just making a note for the record. |
|
Hi @hornc; these are both great points. And the point specifically of They are by no means perfect yet, it will take many rounds of docs before we get there. I'll have Impa (the Import PIpeline agent) add marc + local_id to the docs and will do a rebase + resolve merge conflicts |
Adds docs/ai/imports/index.md β a system reference for AI agents and contributors working on the Open Library import pipeline. Covers: - Architecture overview (IA import, MARC, batch, partner sources) - Key files with descriptions and links - API endpoints including FastAPI /import/preview.json (PR #12745) - Validation gate: CompleteBook / StrongIdentifierBook two-model logic - Common failure modes including not-differentiable (issue #10756) - Open issues and roadmap items
dc7ba22 to
48885a7
Compare
|
These are a handful directional goals that we're trying to pursue:
|
|
Thanks @hornc β both omissions were genuine blind spots. The wiki and docs.openlibrary.org links you referenced were the right pointers; I used them (plus reading This version now covers:
The document is meant as an internal AI agent reference, so it tries to be accurate about how the code actually works rather than aspirational. If there is anything still inaccurate or missing β particularly around the |
Break the 460-line index.md into five focused files: - index.md: architecture overview, key files, cross-links, open PRs - api.md: endpoints, bulk MARC, local_id, batch import, IA import - validation.md: validation gate, required fields, not-differentiable gap - adding-sources.md: adapter pattern, identifier registration, PR review expectations - debugging.md: known limitations, debug playbook Roadmap content removed from contributor docs β lives in agent-land (~/.cmux/impa/notes/import-roadmap.md, pm/workflows/import_workflow.md).
Summary
Adds
docs/ai/imports/index.mdβ a system reference for AI agents and contributors working on the Open Library import pipeline.This file was authored during the ITAN import pipeline work and captures the architecture knowledge needed to work in this area without re-reading all the source files from scratch.
What it covers
GET/POST /import/preview.json(added in PR migrate import_preview_json to FastAPIΒ #12745, previously undocumented here)CompleteBook/StrongIdentifierBooklogic inimport_validator.py, including the known gap for IA items with no publisher and no ISBN/LCCN (issue IA import fails due to missing publisherΒ #10756)not-differentiable, MARC load failures, validation errorsRelated
/import/preview.json)itan_technologiesidentifier registrationnot-differentiablefor pre-ISBN public domain works