Skip to content

About

Section-aware map-reduce document summariser with a cost ceiling and an async job queue.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Document Summariser

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.

Run

poetry install
poetry run uvicorn document_summariser.main:app --reload --port 8001

SUM_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.

API

  • POST /api/v1/jobs with an Idempotency-Key and {"mode":"abstractive","document":"..."}
  • GET /api/v1/jobs/{id} and GET /api/v1/jobs/{id}/summary

Decisions

See docs/adr. Budget: under $0.10 and under 30 seconds for a 50-page document.

About

Section-aware map-reduce document summariser with a cost ceiling and an async job queue.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages