Section-aware map-reduce summariser. A job record is the system of record. Extractive mode uses first sentences. Abstractive mode uses a deep agent only for the reduce step, with harness tools removed.
poetry install
poetry run uvicorn document_summariser.main:app --reload --port 8001SUM_LLM_MODE=scripted runs without an API key. SUM_QUEUE_MODE=queued completes jobs on a background worker. Production reads llm_api_key from SUM_VAULT_SECRET_PATH.
POST /api/v1/jobswith anIdempotency-Keyand{"mode":"abstractive","document":"..."}GET /api/v1/jobs/{id}andGET /api/v1/jobs/{id}/summary
See docs/adr. Budget: under $0.10 and under 30 seconds for a 50-page document.