← All writing

From Data Engineer to AI Engineer: Building Production RAG in 2026

By Venkata Subbaraju Dommaraju · AI/LLM · 8 min read

I spent a decade in regulated pharma data — data migration, Oracle and PL/SQL, BIOVIA Pipeline Pilot, then AWS. Since 2025 the work has been production Generative AI: the same organisations that wanted clean, reconciled data now want LLM systems that answer questions over it. Here's how I made the jump, and the pattern I reach for first.

Retrieval beats fine-tuning (most of the time)

The instinct is to fine-tune a model on your data. Usually that's the wrong first move. Retrieval-Augmented Generation (RAG) — fetch the relevant documents, then let the model answer using them — is cheaper, faster to ship, and far easier to keep current. You update a vector index, not a model.

The pipeline, end to end

  • Ingest & chunk: split documents into passages with overlap; attach metadata (source, date, section).
  • Embed: turn chunks into vectors with an embedding model.
  • Store: index vectors in a database (FAISS, pgvector, OpenSearch).
  • Retrieve: pull the top-k chunks with a metadata filter, then re-rank them for precision.
  • Generate: prompt the LLM to answer ONLY from the retrieved context, and to cite sources.
  • Evaluate: score retrieval with Recall@K and MRR and answers with an LLM-as-judge — as pytest suites that gate every model, prompt and retriever change.

Chunking is where RAG quality is won or lost

Too-small chunks lose context; too-large chunks dilute the signal and blow your token budget. Start around 300–500 tokens with ~15% overlap, split on natural boundaries (headings, paragraphs), and keep a metadata trail so you can cite and filter.

Grounding and honesty

The single most important prompt instruction: answer only from the provided context, and say so when the answer isn't there. That one rule, plus citations, kills most hallucinations. In regulated domains it's non-negotiable — an unsupported answer is worse than no answer.

Ship it like a service, not a notebook

What makes RAG real isn't a notebook — it's a service: FastAPI, tests, a Dockerfile, a health check and a deploy config. My personal RAG Pharma Assistant repo is exactly this, so anyone can run it, click it and reason about it.

The takeaway

If you're a data engineer eyeing AI roles: you already own the hardest part — the data. Add retrieval, grounding, evaluation, and production discipline on top, and you're already most of the way to the work these teams need done.

Related projects

Contact

Open to full-time Senior AI / Data Engineer roles. Based in Downingtown, PA.

LinkedIn · GitHub · Résumé (PDF) · Book a call