Skip to content

Documents and the ingestion pipeline

A document in Verin is not a stored copy of your file. It’s an indexed representation of the file’s content — derived during ingestion, retained for retrieval and citation — together with enough metadata to point a reader back at the authoritative source. The original file bytes are not kept on Verin’s storage. This is a deliberate design choice; see What Verin keeps and what it does not below.

  • PDF (text and scanned/OCR — see PDF processing below)
  • DOCX (Microsoft Word)
  • XLSX (Microsoft Excel — sheet-aware)
  • CSV (treated as a flat tabular document)
  • TXT, MD (plain text and Markdown)

Other formats can be converted upstream. PowerPoint and image-only PDFs are an active area.

  1. Read in memory — The file is read into the ingestion pipeline. It is processed in memory and is not persisted as a file on Verin’s storage.
  2. Classification — A classifier proposes a regulatory category (e.g. “SOP”, “Batch Record”, “Validation Package”, “Submission”). The category is editable; it’s a starting point, not a system of record.
  3. Optional PII / PHI redaction — If your tenant has it enabled, content is run through a configurable redaction pipeline (Microsoft Presidio under the hood) before any AI processing.
  4. Chunking — The document is split into overlapping passages. Chunk size is tuned to balance retrieval quality (smaller chunks = more precise citations) with context coverage (larger chunks = fewer broken-up answers).
  5. Embedding — Each chunk gets a vector embedding stored in a per-tenant vector index. Tenant isolation here is enforced at the property level on every search.
  6. Indexing + metadata — Structured metadata (filename, file size, content hash for deduplication, classification, upload timestamp, uploader, tenant) is persisted in PostgreSQL. The vector chunks are persisted in Weaviate. Both are scoped to your tenant.
  7. Discard the source bytes — Once ingestion completes, the in-memory file content is released. Verin’s persistent state is the index and metadata, not the file.

This is one of Verin’s stronger privacy claims, and it’s worth being explicit about both sides of it.

Verin retains, per tenant:

  • Document metadata — filename, original filename, file type, file size, upload time, uploader, classification, custom tags, content hash (SHA-256 for deduplication). Stored in your tenant’s PostgreSQL.
  • Indexed text chunks and vector embeddings — the searchable representation of your document’s content. Stored in your tenant’s Weaviate index.
  • Structured records derived from approved extractions — typed compliance records (Deviation, CAPA, batch record, etc.) created from approved extractions. Stored in your tenant’s PostgreSQL. See Extractions.
  • Audit log entries — append-only records of significant actions taken on documents (upload, approval, signature, export). See Audit log.

Verin does not retain:

  • The original file bytes. After ingestion, the source file is released from memory. Verin does not maintain a primary copy of customer documents on disk or in object storage.
  • A redundant copy in any third-party file store controlled by Verin for the purpose of holding customer originals.

Why this matters:

  • Authoritative ownership stays with you. Your eQMS, document-control system, SharePoint, Google Drive, or local storage remains the canonical place for the file. Verin is not a competing system of record.
  • Smaller breach blast radius. A compromise of Verin’s infrastructure does not expose original documents — only the indexed representation, which is itself per-tenant isolated.
  • Data minimization. Only what’s needed to answer compliance questions and produce reports is retained. This aligns with GDPR Article 5(1)(c) and the data-minimization expectations in most enterprise privacy reviews.
  • Lower subprocessor exposure. No third-party object-storage subprocessor handles your original documents because Verin doesn’t store them.

What this means in practice:

  • Re-ingestion requires a source. If you want to re-process a document with an improved pipeline, Verin re-fetches the original from the cloud source you uploaded from (Google Drive, SharePoint, OneDrive) or, where available, from the time-limited URL recorded at upload time. If neither is reachable, re-ingestion uses the existing indexed chunks rather than the original file.
  • Citations link to indexed passages. A citation like [D-12] points at the passage as it was at ingestion time, not at a stored file. To verify against the master copy, click through to the source URL or look up the document in your eQMS by the filename and content hash Verin records.
  • Versioning is at the metadata level. Documents have version fields and a supersedes_id reference, so you can track which document supersedes which — but the older versions are retained by their indexed representation, not by storing both files.
  • Retrieval integrity is verified. On first read, Verin records a baseline hash of a document’s indexed (redacted) content (indexed_content_hash); subsequent retrievals verify against that baseline, so unexpected drift in the searchable representation is caught — without the false-positive alerts a raw-file-byte comparison would produce.

When the AI layer answers a question, it retrieves the most relevant chunks (across both your documents and the regulatory KB), grounds the response in those chunks, and emits an answer where each claim links to the specific passage that supports it. The citation includes:

  • The source document name (and any source URL recorded at upload)
  • The section / page reference
  • A short snippet of the supporting text

If a claim cannot be grounded in the retrieved evidence, Verin is designed to say so rather than fabricate a citation.

  • Single-file size: configurable per tenant; 100 MB is the default ceiling.
  • Folder upload: drag the files inside a folder, not the folder itself — directory traversal is not supported in the upload UI today.
  • Batch ingestion: async pipeline; large document sets are processed in the background.
  • Become a stored copy. Verin’s persistent state is the index, not the file. See What Verin keeps and what it does not.
  • Fix or normalize inconsistent data. If your batch records have inconsistent field names, search will find both — the resolution is yours.
  • Replace your eQMS. Verin does not own the canonical version of your controlled documents. It indexes whatever your team has decided is correct.