Tanay Venkata

Back to Builds

Jan 11, 2026 · Document Analysis

FDA Guidance Diff

Lines up two versions of an FDA guidance, sometimes eighteen years apart, and sorts each change as tighter, looser, clearer, or new.

Overview

Semantic document comparison for FDA regulatory guidance. The system extracts text from FDA guidance PDFs, aligns sections across document versions, and classifies each change — telling you not just what changed, but how: stricter requirements, new content, clarifications, or removals.

Validated against law firm analyses (King & Spalding): 90-100% accuracy on modern FDA guidance documents.

How It Works

The pipeline extracts text from FDA guidance PDFs, chunks them by section hierarchy, aligns chunks across document versions using BM25 retrieval, then classifies each change with an LLM. The result is a structured diff that tells you not just what changed, but how.

Architecture

PDF → FDAChunker (parent_child) → Chunks
                                       ↓
Old chunks + New chunks → BM25Index.align_chunks() → ChunkMatches
                                                          ↓
ChunkMatches → LLM classification → ClassifiedChanges → JSON

Key Technical Decisions

Validation Results

Validated against law firm analyses (King & Spalding cybersecurity and software premarket reviews):

Modern FDA documents (post-2010) with numbered section headers achieve 90-100% detection. Older documents with inconsistent formatting are harder — 75% detection on the 2005 software guidance.

Change Taxonomy

The system classifies changes into eight types, separating what the LLM determines (matched content) from what alignment determines (unmatched content):

LLM-Classified (Matched Pairs)

Alignment-Determined (No Match)

Back to Builds