Skip to content

Architecture overview

Verin sits between your documents and the regulators that care about them. Everything else — chat, extractions, reports, monitoring — is a different way of asking the same underlying question: “Given this evidence, what does the regulator say, and can I prove it?”

This page is the mental model. The other pages in Concepts walk through each piece individually.

┌─────────────────────┐
│ Your documents │ SOPs, batch records, validations,
│ (in YOUR systems) │ submissions, training, complaints —
└──────────┬──────────┘ originals stay in your eQMS / drive
│ read in memory, classify, redact PII, chunk, embed
│ (originals are NOT persisted by Verin)
▼
┌─────────────────────┐ ┌─────────────────────┐
│ Document index │ ◄──┐ │ Regulatory KB │
│ (Postgres + vec) │ │ │ (FDA, EUR-Lex, │
│ metadata + chunks │ │ │ ICH, customer- │
└──────────┬──────────┘ │ │ licensed sources) │
│ │ └──────────┬──────────┘
│ retrieval │ │
│ (text + KB) └───────────────┘
▼
┌─────────────────────┐
│ AI layer (RAG) │ Generates answers, extractions,
│ with citations │ report drafts. Cites every claim.
└──────────┬──────────┘
│
▼
┌─────────────────────┐ ┌─────────────────────┐
│ Review + signature │ ──────► │ Structured records │
│ workflow │ │ (CAPA, Deviation, │
└──────────┬──────────┘ │ batch, validation,│
│ │ training, etc.) │
│ └──────────┬──────────┘
│ │
│ │ exact queries:
│ │ filters, counts,
│ │ trends, dates
│ ▼
│ ┌─────────────────────┐
│ │ Reports + dash- │
│ │ boards consume │
│ │ text + structured │
│ └─────────────────────┘
▼
┌─────────────────────┐
│ Audit log │ Append-only record of every
│ (immutable) │ significant action.
└─────────────────────┘
  • Per-tenant isolation runs through the whole stack. The document index, structured records, AI calls, and the audit log are all scoped to your tenant. There is no shared model trained on customer data.
  • Verin does not store your original documents. Files are read into the ingestion pipeline in memory, processed, and then released. What persists is the indexed representation (chunks, embeddings, metadata, content hash) — not the file itself. Authoritative ownership of the original stays in your eQMS / drive / document-control system. See What Verin keeps and what it does not for the full breakdown.
  • Citations are first-class. Every AI answer is designed to link claims to specific passages in specific documents — yours or the regulators’. See Documents and ingestion for how a passage becomes citable, and Evidence and grounding for how each answer is verified and labelled.
  • The regulatory KB is two-tier: publicly available content (FDA Federal Register, EU EUR-Lex, ICH guidelines) is curated by Verin and refreshed automatically; licensed standards (ISO 13485, IEC 62304, etc.) are uploaded by your team and stay in your tenant. See Regulatory Knowledge Base.
  • Approved extractions become typed structured records. When a reviewer signs off on an extraction, the system creates a typed compliance record (CAPA, Deviation, batch record, validation package, training record, complaint, etc.) in addition to indexing the source document. The structured record is what downstream features consume — see the section below.
  • Approval is a signature, not a button click. When a reviewer accepts an extraction, an electronic signature record is created — see Electronic signatures.
  • Audit log is the system of record. Every significant action is captured in an append-only log protected by a database-level immutability trigger. See Audit log.

Pure text retrieval (RAG over document chunks) is great for “what does our SOP say about X” questions but gets approximate quickly when a question needs counts, dates, filters, or trends. Verin’s structured-records layer gives downstream features an exact-query path alongside the text-retrieval path. The combined pattern is called hybrid search.

  • Exact counts and aggregates — “How many major deviations were closed in Q3?” is answered by querying the typed Deviation table with severity and date filters, not by hoping vector search surfaces the right passages.
  • Filtering before retrieval — Reports and dashboards can scope work to a specific product, date range, batch, or facility before any AI call. Smaller, more relevant input → fewer hallucinations.
  • Citations to specific records — Citations like [Deviation D-1234] point at a specific structured record, not just “somewhere in this 200-page document”. A reviewer can confirm by clicking through to the record.
  • Reproducibility — The same structured query against the same data returns the same result. That matters for audit-defensible reports where two QA leads should produce identical inputs.
  • Trend signals — Repeat-deviation analysis, CAPA effectiveness, lot-acceptance rates — all of these require structured fields. Verin’s compliance dashboards run off the structured layer.

A typical report (e.g. an APQR) draws from both layers: structured queries for tables, charts, and counts; RAG over the source documents for narrative paragraphs and inline citations. The goal is that every claim — whether it’s a number, a sentence, or a chart — traces back to either a typed record or a cited passage.

  • Verin is not a system for generating policies from scratch with no source material. It needs an evidence base.
  • Verin is not the canonical eQMS. Even though it produces typed structured records, your existing system of record (TrackWise, MasterControl, Veeva, etc.) may still own the master copy. Verin’s structured records are useful for analysis and reporting; the master-copy question is a deployment-time conversation.
  • Verin’s regulatory KB is not authoritative legal text — it’s an indexed, citation-backed working copy. The official source is always the regulator’s published artifact.