GraphLetter Logo
    Graphletter
    FrameworksArchitectureResearch

    Architecture

    Graphletter is a Next.js 15 application that combines structured compliance data (SCF) with LLM-based document analysis to produce framework-aware compliance assessments.

    Pipeline Stages

    1

    Ingestion

    Documents (PDF, DOCX, images, CSV) are uploaded and content is extracted using pdf-parse, mammoth, and tesseract.js OCR. Text is normalized and chunked for analysis.

    2

    Control Graph

    The SCF control catalog (1,200+ controls across 33 domains) is loaded from versioned CSV data. Cross-framework mappings connect SCF controls to 79+ regulatory standards.

    3

    Evidence Analysis

    Extracted content is matched against SCF controls and assessment objectives. Each control has testable criteria that evidence is evaluated against.

    4

    LLM Reasoning

    Dual-provider AI assessment: GPT-5-mini handles ingestion and extraction, GPT-5 performs control mapping and final schema normalization, and Claude 3.7 Sonnet drives gap analysis and remediation recommendations.

    5

    Scoring & Output

    Per-control confidence scores, evidence strength ratings (Strong/Moderate/Weak/Insufficient), gap identification, and remediation guidance are compiled into structured reports.

    AI Model Selection

    Different tasks use different models optimized for their specific requirements. Providers are configured with automatic fallback.

    TaskModelTempRationale
    Document ingestion / parsingGPT-5-mini0.0Fast, cost-efficient extraction with stronger 2026 accuracy for chunking and metadata capture
    Control mapping / classificationGPT-50.1Improved reasoning and structured JSON reliability for evidence-to-control mapping
    Gap analysis + recommendationsClaude 3.7 Sonnet0.2Stronger long-document synthesis and analytical writing for remediation narratives
    Final structured compliance outputGPT-50.1Normalizes multi-model outputs into a strict, deterministic compliance schema

    Data Model

    SCF Catalog

    • scf_controls — 1,200+ controls across 33 domains
    • scf_frameworks — 79+ regulatory standards
    • scf_control_mappings — cross-framework mapping table
    • scf_assessment_objectives — testable criteria per control
    • scf_evidence_request_list — required artifact types

    Evidence & Assessments

    • evidence — uploaded documents with extracted content
    • user_assessments — AI-generated compliance evaluations
    • Multi-tenant isolation via Supabase Row-Level Security
    • Evidence stored in Supabase Storage

    Workflow Durability

    Long-running operations (evidence upload, multi-control assessment) use Vercel Workflow Dev Kit for durable execution. Each pipeline stage is a retryable step with state persistence — operations survive function timeouts, deployments, and transient AI provider failures.

    The evidence pipeline is split into three durable stages: content extraction, upload & persistence, and AI assessment. Assessment objectives are evaluated in parallel with automatic retry on transient failures.

    Stack

    Runtime
    Next.js 15, React 19
    Database
    Supabase PostgreSQL
    AI
    OpenAI, Anthropic
    Workflows
    Vercel WDK
    Auth
    Supabase OAuth
    File Processing
    pdf-parse, mammoth, tesseract.js
    UI
    Tailwind, shadcn/ui
    Deployment
    Vercel (serverless)
    GraphLetter Logo
    Graphletter

    Project

    ArchitectureFrameworksResearch

    Legal

    PrivacyTermsSCF Attribution

    Contact

    hello@graphletter.com
    © 2026 Graphletter