Guides

What a RAG engineer does, and when you need one

By Abdul Asim · ·

What does a RAG engineer do?

A retrieval augmented generation (RAG) engineer builds and runs the system that lets a language model answer from your own documents and data. They own everything around the model: getting content in, splitting and indexing it, finding the right passages for each question, making the answer cite them, testing that it is right, and keeping it fast, cheap and secure once people use it.

The pattern itself dates from the 2020 paper that named it, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, which I cover in when RAG was introduced. The model is the smallest part of the job. Most of the work is data, search and testing, which is why the role sits closer to search engineering and backend engineering than to research.

What the role owns day to day

If you want the full flow first, how a RAG pipeline works walks through it end to end. Here is what a retrieval augmented generation engineer is actually responsible for on a working system:

  • Ingestion and chunking. Pull content from PDFs, scans, wikis, databases and APIs, extract clean text, and split it into pieces that each answer something on their own. Tables, headers and scanned pages are where this goes wrong.
  • Embeddings and indexing. Pick an embedding model, store vectors with the metadata you will filter on (source, date, owner, product), and keep the index in step when documents change. The vector database guide covers the storage side.
  • Hybrid retrieval and reranking. Combine meaning-based search with keyword search, filters and sometimes SQL, then rerank the candidates so the best few passages reach the model.
  • Grounding and citations. Write the prompt and answer format so every claim points to a passage, and so the system says it does not know when the passages do not cover the question.
  • Evaluation. Keep a labeled test set and rerun it on every change to chunking, models, prompts or ranking.
  • Permissions and security. Make sure a user can only retrieve what they are allowed to see, and that text inside documents cannot take over the model. OWASP lists weak access control on embedding stores as its own risk, LLM08:2025 Vector and Embedding Weaknesses, and prompt injection covers the second half.
  • Latency and cost. Decide how many passages to send, which model handles which request, and what to cache.
  • Monitoring. Log questions, retrieved document IDs, answers, latency and escalations, then turn failures into new test cases.

On Permit Signal, most of my time went into the first three lines of that list. The ingestion scope was 3 million New Jersey construction permits and 60,000 property records from Socrata and ArcGIS. They had to be normalized, geocoded into PostGIS and joined spatially before any question could be answered. The retriever then combines spatial lookup, semantic search, BM25 keyword matching and SQL, because a question like "recent roofing permits near this address" needs location, meaning and exact terms at once. The language model only words the answer; the retrieval layer supplies the evidence, the citations and the map pins.

RAG engineer skills, and how to test for them

Titles vary, so test for the work. This is the scorecard I would use to interview someone for the role:

SkillWhy it mattersHow to test for it in an interview
Document processingBad extraction caps quality before search even runsHand them a messy PDF with a table and a scanned page; ask how they would get clean, chunked text
Search fundamentalsMost wrong answers are retrieval misses, not model errorsAsk when keyword search beats embeddings, and how they would combine the two
Evaluation designWithout a test set, every change is a guessAsk them to design ten test cases and pass rules for your use case
Prompting for groundingThe model must cite and refuse, not improviseAsk how they stop answers that sound right but are not in the sources
Backend engineeringIt is an API with queues, retries, caching and logsWalk through how they would re-index when 500 documents change overnight
Security and access controlRetrieval can leak documents across usersAsk how a user's permissions reach the retriever
Cost and latency judgmentBigger context and bigger models are not freeAsk how they would cut cost per answer by half without losing accuracy

A strong candidate answers with a test they would run, not a framework name. Ask what went wrong on the last system they shipped; good RAG engineers have specific stories about tables, stale documents or a retriever that missed the obvious file.

If you are an engineer moving into the role, the same table is your study plan. Learn one search engine well (including BM25, not only vectors), build a small labeled test set for a real document set, and practice explaining why an answer was wrong by looking at what was retrieved. The LLM evaluation guide is a good place to start on the testing side.

A RAG engineer job description you can adapt

If you are writing the posting, keep it about outcomes: - Build and maintain ingestion for our document sources, including OCR and table handling. - Design hybrid retrieval with metadata filters and reranking. - Ship answers with passage-level citations and a clear fallback when the sources do not cover a question. - Own a versioned test set and block releases that lower its score. - Enforce document-level permissions in retrieval. - Monitor quality, latency and cost per answer, and report on them.

Leave out long lists of frameworks. Tools change every few months; the skills in the table above do not.

How it differs from ML, data and prompt engineers

RoleMain outputOverlap with a RAG engineer
ML engineerTrained and deployed models, features, training pipelinesModel serving and evaluation; a RAG engineer rarely trains models
Data engineerReliable pipelines and warehousesIngestion and freshness; a RAG engineer also owns how the data is searched and cited
Prompt engineerInstructions and examples for a modelGrounding prompts; a RAG engineer owns the retrieval that decides what the prompt contains

The practical difference: a RAG engineer is accountable for whether the answer is right and traceable, which spans all three. When a team asks whether to retrieve or retrain, the answer usually starts with retrieval, as the RAG vs fine-tuning comparison explains, and that is squarely RAG engineer territory.

When should you hire a RAG engineer?

Not every team needs one. An off-the-shelf tool, such as a vendor's file search or a chat assistant connected to your drive, is often enough when: - the documents are clean text with few tables or scans, - every user may see every document, - an occasional wrong answer is cheap, and - nobody needs to prove where an answer came from.

Hire a RAG engineer, or bring one in for a fixed project, when any of these is true: - Answers carry risk. Proposals, compliance, pricing or customer-facing replies need citations and a review step. - The data is messy or mixed. Scans, tables, spreadsheets, databases or location data alongside documents. - Access differs by user. Different teams or customers must see different documents. - You have a demo that does not hold up. It works on the questions you tried and fails on the ones users ask. - Usage is growing. Cost and latency now matter, and you need monitoring.

Applied Optoelectronics is a good example of the shift. The proposal team started with a generic ChatGPT workflow, which could not draw on approved company material. I built a workflow that runs technical documents and scanned material through extraction and OCR, normalizes and chunks it, retrieves passages for each individual RFP requirement, and routes every draft through a review and export gate. Answering requirement by requirement, rather than from one broad summary, is the kind of design choice an off-the-shelf tool will not make for you.

For McKissock Learning's sales assistant, the same question had a different answer: grounding mattered, but so did what happens when the assistant cannot help. It creates a HubSpot support ticket for unresolved requests and logs requests to New Relic. Deciding where retrieval ends and a handoff begins is part of the job.

What a good first 30 days looks like

Whether you hire full time or bring in a contractor, the first month should produce evidence, not just a prototype: 1. Week 1: questions and sources. Collect 50 to 100 real questions from users or tickets, list every source and who may see it, and agree what a correct answer looks like. 2. Week 2: baseline. Ingest a representative slice, build simple retrieval, and score it on the test set. Record retrieval hits and answer accuracy separately. 3. Week 3: fix the biggest gap. Usually extraction or chunking for tables and scans, then hybrid search and reranking. Rerun the test set after each change. 4. Week 4: make it safe to use. Add citations, a refusal path, permission filtering, logging and alerts, then put it in front of a small group of real users.

By day 30 you should have a test set, a score, a list of known failures and a decision on what to build next. If the engineer cannot show you those four things, the system is still a demo. The components of a RAG pipeline guide is a useful checklist of the parts to cover.

Hiring a RAG engineer: the practical route

For context on where my view comes from: I am listed as the #1 RAG Engineer on Upwork, with Expert Vetted and Top Rated Plus status, and the systems above are ones I built and run.

If you want to test whether RAG works on your own material before committing to a hire, the 100 document RAG MVP builds a working assistant on up to 100 of your documents, with cited answers and accuracy tested on real questions. If you already have a system and it is unreliable, an AI app review looks at retrieval, chunking, evals, cost and latency, and gives you a prioritized fix list, which also works as a brief for whoever you hire next.

Let's talk

Let's ship yours.

AI product, automation bottleneck, RAG use case, or operational workflow. Tell me what's slowing your team down, or what revenue you're leaving on the table.

Abdul Asim, AI / LLM Engineer