Skip to content

Document Intelligence Platform

Enterprise-grade document processing platform with OCR, graph-based workflow orchestration, document classification, custom model training, and human-in-the-loop review capabilities.

Platform Overview โ€‹

The Document Intelligence Platform is a comprehensive solution for document processing workflows. It combines OCR services, flexible graph-based workflow orchestration, supervised learning capabilities, and collaborative review tools into a unified platform.

๐Ÿš€ Core Features โ€‹

  • Document Processing - Multi-format document upload and OCR with Azure Document Intelligence
  • Document Classification - Train and deploy Azure Document Intelligence classifiers for automated document type routing
  • Graph Workflows - DAG-based workflow engine with 30+ extensible activities powered by Temporal
  • Model Training - Supervised learning with custom model training and versioned deployments
  • HITL Review - Collaborative human-in-the-loop workflows with confidence-based routing

๐Ÿ—๏ธ Architecture โ€‹

  • Backend - NestJS with Express, Prisma ORM, PostgreSQL
  • Frontend - React with TypeScript, Mantine UI
  • Orchestration - Temporal workflow engine with durable execution
  • Storage - Unified blob storage (MinIO for local dev, Azure Blob for cloud)

Key Capabilities โ€‹

Graph-Based Workflow Engine โ€‹

The platform features a DAG workflow engine for multi-step document processing. Workflows are defined as JSON graphs; the UI provides a JSON editor and a read-only React Flow visualization synced to that JSON.

30+ Built-in Activities: OCR processing, field extraction, validation, confidence filtering, model training, HITL routing, parallel execution, conditional branching, and more.

Quick Start โ€‹

Full setup

This page is a public overview. For prerequisites, environment files, and complete local setup, use the root README.md in the repository.

1. Install Dependencies โ€‹

bash
npm run install:all

2. Start Infrastructure โ€‹

# From repo root
docker compose --profile infra up -d
docker compose --profile temporal up -d

3. Initialize Database โ€‹

bash
cd apps/backend-services
# Create .env (no sample committed) with at least:
# DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ai_doc_intelligence?schema=public
npm run db:migrate
npm run db:generate

4. Start Services โ€‹

# From repo root (backend + frontend + temporal worker)
npm run dev

# Or individually:
# npm run dev:backend
# npm run dev:frontend
# cd apps/temporal && npm run dev

5. Access the Platform โ€‹

  • Frontend: http://localhost:3000
  • Backend API: http://localhost:3002
  • API Docs: http://localhost:3002/api
  • Temporal UI: http://localhost:8088

API Documentation โ€‹

Comprehensive REST API documentation is available on the API Reference page. The API supports both Bearer token authentication (Keycloak SSO) and API key authentication.

  • API Reference: interactive API documentation with request and response schemas, authentication details, and example requests from the OpenAPI spec.
  • GitHub repository: source code, issues, contributions and further documentation.

Technology Stack โ€‹

Core Technologies โ€‹

Backend Services โ€‹

  • NestJS 11 + Express
  • Prisma ORM
  • PostgreSQL 14+
  • Temporal Workflow Engine
  • Azure Document Intelligence SDK

Frontend Application โ€‹

  • React 19 + TypeScript
  • Vite
  • Mantine UI Components
  • React Flow (workflow visualization)
  • Axios + React Query

Project Structure โ€‹

apps/
โ”œโ”€โ”€ backend-services/    # NestJS REST API
โ”œโ”€โ”€ frontend/            # React application
โ”œโ”€โ”€ temporal/            # Temporal workflow workers
โ”œโ”€โ”€ ches-adapter/        # CHES email notification adapter
โ””โ”€โ”€ shared/              # Shared Prisma schema

packages/                # Shared workspace packages (@ai-di/*)
docs-md/                 # Technical documentation (by topic)
docs/                    # This documentation site
deployments/             # OpenShift/Kubernetes manifests
tools/                   # Load testing and dev tooling

Learn More โ€‹

Additional Documentation

Detailed technical documentation is available in the /docs-md directory, organized by topic. Start with the repo wiki for a routing map, then:

  • docs-md/architecture/: System design โ€” HITL architecture, blob storage, template models, database services
  • docs-md/workflows/: Workflow engine architecture and activity development guides
  • docs-md/operations/ & monitoring/: Deployment, environment configuration, and the PLG observability stack