Project guide

Project Guide | DocFlow Agent

Free document automation boundary checklist for secure extraction and approval workflows. This guide organizes the repository's original implementation notes for document operations owners and automation reviewers.

Reviewed 2026-07-28. This page is derived from checked-in repository evidence and links back to its source.

DocFlow Agent

A document-to-learning pipeline that turns uploaded files into structured extraction, grounded Q&A, and LMS-ready exports (SCORM / IMS CC).

System Overview

LensDecision signal
UsersEducation, enablement, and internal training teams that need document ingestion to become LMS-ready learning assets without a manual content factory.
Product proofThe demo, workflow loop, and static proof surface show the current product direction without extra claims.
Technical proofDemo mode, health endpoints, runtime scorecards, schemas, export timeline, and tests make the product inspectable without external API keys.
Safety postureSession-scoped provider settings, grounded citations, structured errors, and local/Ollama fallback reduce hallucination and credential risk.

Evaluation Path

Technical Notes

What it does

Upload a document and the system will:

Quick Start

cp .env.example .env          # adjust if needed
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -U pip
python3 -m pip install -e ".[dev]"

Run in demo mode (no API keys needed):

DOCUAGENT_DEMO_MODE=1 python3 main.py

Run with Upstage API:

UPSTAGE_API_KEY="<your_key>" python3 main.py

Run with Ollama (local LLM):

UPSTAGE_API_KEY="<your_key>" \
DOCUAGENT_LLM_PROVIDER=ollama \
OLLAMA_BASE_URL="http://127.0.0.1:11434" \
OLLAMA_MODEL="llama3.2:latest" \
python3 main.py

Open http://localhost:8000

API Endpoints

EndpointDescription
GET /healthzRuntime mode, provider status, queue pressure
GET /api/runtime/briefOperator workflow summary and config
GET /api/runtime/scorecardQueue pressure, route health overview
GET /api/export-timelineRecent analyses, job state, and artifact handoff posture
GET /api/review-packPipeline summary with export routes
GET /api/schema/analysis-reportAnalysis payload schema
GET /api/metricsRuntime metrics
POST /api/analyzeRun document analysis
POST /api/analyze/jobsAsync analysis with polling/cancellation
GET /api/export/scormExport learning package

Architecture

Key features

Dev / Tests

python3 -m pip install -r requirements-dev.txt
ruff check .
ruff format --check .
pytest -q

Deployment

Docs

Glossary

Cloud + AI Architecture

Enterprise Productization

Service Architecture