Architecture Overview
Document Status: Placeholder - To be completed in Phase 4
System Overview
LC DocCheck is a cloud-native document compliance checking system built on Azure services.
High-Level Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Power Apps │────▶│ Azure │────▶│ Cosmos DB │
│ Code App │ │ Functions │ │ (Serverless) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ Azure AI │
│ Foundry │
└─────────────────┘
Components
Frontend (Power Apps Code App)
- React 18.2.0 with Fluent UI v9
- TanStack Query for state management
- Document upload with SAS URL authentication
Backend (Azure Functions)
- Python-based Azure Functions
- Document extraction and analysis
- Compliance checking against LC terms
Data Layer (Cosmos DB)
- Serverless deployment
- Nested document structure
- Sales orders with embedded LC documents, PI documents, shipments
AI Services (Azure AI Foundry)
- Document field extraction
- Compliance rule evaluation
- Natural language processing for LC terms
Data Flow
- Document Upload: User uploads LC/PI/shipping documents via SAS URL
- Extraction: Azure Functions process documents through AI Foundry
- Storage: Extracted data stored in Cosmos DB with full audit trail
- Comparison: LC terms compared against PI and shipping documents
- Results: Compliance results displayed in real-time
Security Model
- Entra ID authentication
- Role-based access control
- Document access scoped to organisation
- SAS URL tokens for secure blob access