AI & data engineering

AI that holds up after the demo.

Retrieval, extraction and automation built like any other production system: measured before launch, observable in operation, secure by design, and with people in the loop where mistakes are expensive.

The layer underneath

The data layer comes first

Retrieval, extraction and automation are only as dependable as the data beneath them. Scroll to build the platform from the data up.

  1. 0106

    Reliable flows from the source

    Pipelines pull from source systems on a schedule or through change data capture, with tests and lineage, so nothing downstream reads a half-loaded table.

    • Airflow
    • dbt
    • Change data capture
  2. 0206

    An index that knows who may see what

    Curated data and documents are chunked, embedded and indexed together with their permissions, so retrieval filters by access before anything reaches a model.

    • pgvector
    • BM25
    • Access control
  3. 0306

    Documents become data

    OCR and layout models extract fields from scans and PDFs. Schema checks and confidence scores decide what flows on automatically.

    • OCR
    • Layout models
    • Validation
  4. 0406

    People where mistakes are expensive

    Low-confidence extractions go to a review queue. Every correction is kept as a labeled example for the next evaluation run.

    • Human review
    • Labeled data
  5. 0506

    Answers grounded in your data

    The RAG service retrieves, re-ranks and answers with citations, and declines when the evidence is thin, for assistants and automations alike.

    • Retrieval
    • Citations
    • Structured output
  6. 0606

    Measured before and after launch

    Golden datasets gate every change in CI; in production, traces record cost, latency and user feedback for every answer.

    • Evaluation
    • CI gates
    • Tracing

01Pipeline, simulated

Watch a batch move through the system.

Run a batch of 24 fictional documents. Inject OCR failures, degrade the model or move the review threshold, and see how routing, cost and latency respond. Select any document to inspect its trace.
Simulated pipeline · no model calls · fictional documentsBatch of 24 · tick 0
  1. 01

    Ingest

    Email, upload, SFTP

    0

  2. 02

    Parse & OCR

    Layout-aware text

    0

  3. 03

    Chunk & redact

    Sections, PII masked

    0

  4. 04

    Embed & index

    Hybrid index

    0

  5. 05

    Retrieve

    Keyword + vector, re-rank

    0

  6. 06

    Generate

    Schema + citations

    0

  7. 07

    Evaluate

    Rules, grounding, confidence

    0

  8. 08

    Human review

    Below threshold

    0

  9. 09

    Delivered

    To ERP / answer

    0

Delivered
0
In review
0 (0%)
Dead-lettered
0
Avg confidence
—
p95 latency
—
Model cost
$0.000
Cost / document
—
Settled
0 / 24

Trace · Policy PDF #1040

  1. Ingest—
  2. Parse & OCR—
  3. Chunk & redact—
  4. Embed & index—
  5. Retrieve—
  6. Generate—
  7. Evaluate—

Digital PDF · not scored yet

Reviewer decisions become evaluation data.

Pipeline events

0 events
  1. Events appear as documents are retried, routed to review, dead-lettered or delivered. Press “Run batch” or use Step.

02What I build

The parts that make AI dependable.

  • RAG & retrieval

    Assistants and search grounded in your own documents, with answers that cite their sources.

    • Hybrid keyword + vector retrieval
    • Re-ranking and metadata filters
    • Permission-aware results per user and tenant
  • Document processing

    Turning PDFs, scans and emails into structured, validated data that systems can use.

    • OCR and layout parsing
    • Schema-constrained extraction
    • Span-level citations for every field
  • Evaluation

    A measured definition of “good enough” before launch, and regression checks after.

    • Golden datasets from real cases
    • Retrieval and answer metrics
    • Release gates in CI
  • Data ingestion & pipelines

    Reliable flows from source systems into warehouses, indexes and models.

    • Batch and streaming ingestion
    • Schema checks and data quality tests
    • Idempotent, replayable jobs
  • Workflow automation

    AI as one step in a business process, with the surrounding rules, approvals and fallbacks.

    • Confidence-based routing
    • Approvals and exception queues
    • Integration with ERP, CRM and ticketing
  • Observability

    Knowing what the system did, why, how long it took and what it cost, per request.

    • Traces across retrieval and generation
    • Cost and latency budgets
    • Quality drift alerts from feedback
  • Security & privacy

    Controls designed in from the start, because AI systems touch sensitive data by design.

    • PII redaction before indexing
    • Tenant isolation in retrieval
    • Provider terms with no training on your data
  • Human review

    People stay in control where mistakes are expensive, and their decisions improve the system.

    • Keyboard-first review queues
    • Corrections captured as test cases
    • Audit trail of every decision

03Evaluation first

If it isn’t measured, it isn’t ready.

Every AI engagement starts by agreeing what “correct” means for your use case, then measuring it. These are the metrics I typically track; the evaluation set is built from your real questions and documents.
MetricWhat it tells youWhen it matters
Retrieval recall@kWhether the right passages are found at all.Always first: generation can't fix missing context.
GroundednessWhether each claim is supported by the retrieved sources.Customer-facing answers and anything people act on.
Citation accuracyWhether citations point to text that actually supports the claim.Any workflow where people verify answers.
Field-level accuracyExact-match or tolerance-based correctness per extracted field.Document extraction feeding systems of record.
Refusal rateHow often the system correctly says “I don't know” — and how often it wrongly refuses.Assistants with a defined knowledge boundary.
p95 latency & cost per taskWhether the experience and unit economics hold at real volume.Before launch, then continuously in production.

04 — Security & privacy

Designed for data you can’t afford to leak.

  • 01Retrieved documents and user input are treated as untrusted. Instructions found inside them are never executed, and tools are limited to explicit, least-privilege permissions.
  • 02Personal data is minimized and redacted before indexing where the use case allows, and retention rules apply to prompts, outputs and logs.
  • 03Each tenant's and user's retrieval is filtered by their permissions at query time, not only in the interface.
  • 04Model providers are used under business terms without training on your data; where that isn't acceptable, open-weight models can run in your cloud.
  • 05Every automated decision is logged with inputs, sources, model version and outcome, so it can be explained and audited later.

Regulatory obligations such as India’s DPDP Act, the GDPR or the EU AI Act depend on your use case. I document data flows and system behavior so your counsel can assess them; I don’t provide legal advice.

Next step

Tell me what you’re building. I’ll tell you how I’d approach it.

Send a short brief. You’ll get a written reply from me within two business days — either a few clarifying questions, a suggested first step, or an honest “I’m not the right fit” with a pointer elsewhere.

Parth Patel

Senior full-stack engineer