A walkthrough of the lease reviewer architecture
2026-03-13
This repo is a minimum reproducible example of a sidecar-based AI workflow: Upload PDF -> convert with Docling -> analyze with ADK agents -> return structured lease insights.
Docling is isolated as its own service so document conversion can scale and fail independently.
POST /upload stores PDF under /uploads/<uuid>/file.pdf.POST /chat with file path in message./run.convert_pdf_to_markdown tool.docling/v1/convert/file.lease_markdown.lease_markdownThis split keeps orchestration logic separate from extraction/reporting logic.
depends_on gate startup until Docling is ready.Without a sidecar boundary, conversion failures or model warm-up delays can degrade the whole agent service.
docker compose up --build starts full stack.api, adk, docling).cpus, memory) reduce noisy-neighbor risks.The downstream agent quality depends heavily on document structure quality.
Streamlit upload completed and review in progress
This in-progress step is useful to demo that upload, session creation, and background analysis are decoupled.
Streamlit upload completed and review complete
This completed state shows the final output format: prose review followed by structured JSON. Both are generated by the checklist sub-agent using the Docling-converted Markdown.