Artificial Intelligence
RAG Engineer Job Description
A RAG Engineer builds retrieval-augmented generation systems: the pipelines that find relevant passages in a company's own documents and hand them to a large language model so its answers are grounded and cited. The role sits between search engineering, data engineering and applied AI, on platform or product teams at software companies, cloud providers and large enterprises. BLS does not report RAG engineers separately; for software developers, the occupation the role falls under, the May 2025 median wage was $135,980, with the 10th percentile at $82,460 and the 90th at $214,670.
Last updated
Role at a glance
- Typical education
- Bachelor's degree in computer science, software engineering or a related field.
- Typical experience
- As a rough guide, 3 to 5 years of software engineering, ideally including search or data pipeline work.
- Key certifications
- None required; AWS Certified Generative AI Developer - Professional and NVIDIA's NCA-GENL cover related skills.
- Top employer types
- Computer systems design firms, software publishers and manufacturers, plus enterprises building assistants on their own records.
- Growth outlook
- BLS projects software developer jobs, the occupation this role falls under, to grow 10.2 percent from 2025 to 2035.
- AI impact (through 2030)
- Managed agentic retrieval, such as Microsoft's in Azure AI Search, can plan subqueries and rerank results; engineers still choose sources and check answers.
Duties and responsibilities
- Design ingestion pipelines that parse PDFs, web pages, tickets and tables into clean, well-labeled chunks ready for embedding and indexing
- Choose chunking rules that follow document structure, keeping headings, tables and exceptions attached to the passages they govern
- Select and benchmark embedding models against a labeled question set before changing the model used in production
- Build hybrid retrieval that combines vector search with BM25 keyword matching, then fuse and rerank the merged results
- Enforce document-level permissions and tenant isolation in the index so users only retrieve content they are cleared to see
- Assemble prompts that fit retrieved passages into the context window and require the model to cite the sources it used
- Maintain evaluation suites that score retrieval and answers separately, rerunning them on every pipeline, prompt or model change
- Schedule re-indexing and deletion jobs so updated, superseded and removed documents stop appearing in answers on time
- Test pipelines for document poisoning and prompt injection hidden in retrieved text, and add screening before content enters the corpus
- Instrument services with traces that log retrieved passages, latency and token cost so failures can be diagnosed quickly
Overview
A RAG Engineer builds the software that lets a large language model answer from a specific body of documents instead of from memory alone. The term traces to a 2020 NeurIPS paper by Patrick Lewis and colleagues, which introduced retrieval-augmented generation models that combine pre-trained parametric and non-parametric memory for language generation; in that first version, the non-parametric memory was a dense vector index of Wikipedia. NIST's adversarial machine learning taxonomy (NIST AI 100-2e2025) gives a current federal definition: a model paired with a separate information retrieval system, or knowledge base, that finds relevant material for each query and hands it to the model in context.
The job has three layers, and a RAG Engineer is expected to own all of them.
Ingestion. Source material arrives as PDFs, wiki pages, ticket histories, contracts, spreadsheets and code. The engineer writes the parsers that extract clean text and tables, decides how to split documents into chunks, attaches metadata such as owner, date, product line and access group, and runs the embedding jobs that turn each chunk into a vector. Every one of these choices changes what the system can later find. A chunk that cuts a table in half, or strips the heading that says which policy a paragraph belongs to, produces answers that sound right and are wrong.
Retrieval. At query time the system has to find the few passages that matter. The pieces are a vector index (HNSW or IVFFlat in pgvector, a managed store such as Pinecone or Qdrant, or a cloud service), a keyword index for exact terms like part numbers and statute citations, a fusion step that merges the two result lists, and a reranker that reorders the shortlist before it reaches the model. Filters matter as much as similarity: a support bot must not surface a document the user is not allowed to see, and a legal assistant should not cite a superseded version of a contract.
Generation and evaluation. The engineer assembles the prompt, decides how much retrieved text fits in the context window, asks the model to cite its sources, and then measures whether the answers hold up. That measurement work is the part that separates a demo from a product. It means building a test set of real questions with known good passages, scoring retrieval separately from the final answer, checking that cited passages actually support each claim, and rerunning the whole suite whenever a chunking rule, embedding model or prompt changes.
Day to day, the work looks like ordinary backend engineering with an unusual failure mode. A RAG Engineer writes Python services, schedules re-indexing jobs, tunes queries, reads traces, and sits with subject experts to learn what a correct answer looks like in their field. The difference is that errors rarely throw exceptions. They show up as a confident answer built on the wrong paragraph, so logging which passages were retrieved, and why, is part of the build from day one.
The title overlaps with LLM engineer, AI search engineer and applied AI engineer. What sets this role apart is the focus on the retrieval side of the stack, where search relevance, data pipelines and access control meet the language model.
Qualifications
Education. As a rough guide, a bachelor's degree in computer science, software engineering, data science or a related field is the usual starting point. BLS lists a bachelor's degree as the typical entry-level education for software developers, the occupation this role falls under. Coursework in information retrieval, natural language processing, databases and statistics maps directly onto the job. A master's degree can help on teams that train their own embedding or reranking models, but building and running retrieval systems does not depend on one.
Experience. As a rough guide, expect three to five years of software engineering before owning a production RAG system, with some of that time spent on search, data pipelines or backend services. Search experience transfers directly: tuning Elasticsearch or OpenSearch relevance, building ranking features and debugging slow database queries are the same problems retrieval raises. Data engineering experience covers the ingestion and scheduling side. A good portfolio piece is one system that real users relied on, with a clear account of how its quality was measured and improved.
Core skills.
- Python for services and pipelines, plus SQL for metadata, filters and evaluation queries
- Embedding models and vector indexes: HNSW and IVFFlat tradeoffs, quantization, filtered search, re-indexing without downtime
- Keyword search (BM25), hybrid fusion and cross-encoder reranking
- Document parsing for PDFs, HTML, tables and scanned pages, and chunking rules tied to document structure
- Evaluation design: labeled question sets, retrieval metrics such as recall and nDCG, citation checks and LLM-as-judge scoring with human spot checks
- Security for retrieval systems: document-level permissions, tenant isolation, prompt-injection defenses for retrieved text
- One cloud platform at production depth, along with containers, queues and observability tooling
Frameworks. LangChain, LlamaIndex and Haystack speed up prototypes. Strong candidates can explain what each abstraction does underneath and can replace it with plain code when it gets in the way.
Certifications. No certification is needed to do the work. Three vendor credentials cover ground this job touches:
- AWS Certified Generative AI Developer - Professional (Amazon Web Services), exam AIP-C01, which covers integrating foundation models into applications and business workflows
- NVIDIA-Certified Associate: Generative AI LLMs, NCA-GENL (NVIDIA), whose exam topics include curating and embedding content datasets for RAG
- Databricks Certified Generative AI Engineer Associate (Databricks), whose exam covers building RAG applications and LLM chains with Databricks tools
Habits that show. Keep a written evaluation log, treat every change to chunking or embeddings as an experiment with a before and after, and learn enough about the business domain to know when an answer is technically grounded but still useless.
Career outlook
BLS does not track RAG engineering as its own occupation, so the federal outlook figures describe software developers as a whole. In the 2025-35 projections released Aug. 27, 2026, BLS expects software developer employment to rise 10.2 percent over the decade, with about 95.3 thousand openings a year on average. The Occupational Outlook Handbook ties demand for the broader developer, QA analyst and tester group in part to the continued expansion of software development for artificial intelligence, internet of things, robotics and other automation applications. Those figures cover the whole occupation, not this specialty.
The more useful signals for a RAG Engineer come from the security guidance, tools and benchmarks that shape the work.
Security guidance names the retrieval layer. The OWASP Top 10 for LLM Applications 2025 includes a category that names this layer directly, LLM08:2025 Vector and Embedding Weaknesses. It warns that flaws in how vectors and embeddings are generated, stored or retrieved can be exploited to inject harmful content, manipulate model outputs or access sensitive information, and it recommends permission-aware vector and embedding stores. The NIST Generative AI Profile (NIST AI 600-1) tells organizations to re-assess model risks after fine-tuning or a retrieval-augmented generation implementation. In practice, access control, provenance checks and red-team testing belong in the pipeline design, not in a later review. The Occupational Outlook Handbook makes a related point for the whole occupation: in response to concerns over threats to computer security, organizations are expected to increase investment in software that protects their networks and infrastructure.
Vector search is built into general-purpose services. Amazon S3 Vectors, which stores and queries vectors inside S3 object storage, reached general availability on Dec. 2, 2025; a single index can hold up to two billion vectors. In Postgres, the pgvector extension added support for iterative index scans in version 0.8.0 (Oct. 30, 2024), and the project shipped version 0.8.7 on Oct. 1, 2026. With vector search available inside object storage and Postgres, choosing a store is one design decision among many; data quality, filtering and evaluation stay with the engineer.
Where the jobs are. The OEWS survey estimated employment of 1,687,890 software developers in May 2025. The Handbook says many software developers, quality assurance analysts and testers work in computer systems design and related services, in manufacturing, or for software publishers. RAG work can appear wherever an organization wants a language model to answer from its own records: insurers and banks with policy libraries, health systems with clinical guidance, law firms with document archives, and software companies adding search and assistants to their products.
Evaluation has a public benchmark. The TREC 2025 RAG Track, the second edition of the RAG track at the Text Retrieval Conference, drew over 150 submissions and scored systems on relevance, response completeness, attribution verification and agreement. Its organizers moved the 2026 track from the MS MARCO V2.1 corpus to NVIDIA's ClimbMix-400B.
Teams can borrow that framing for their own test sets: score whether the right documents came back, whether the answer covers the question, and whether each cited passage supports the sentence that cites it.
For job seekers, the practical read is to build depth in the skills these sources keep returning to: search relevance, data pipelines, evaluation and security.
Sample cover letter
Dear Hiring Manager,
I am applying for the RAG Engineer opening on your knowledge platform team. For the last three years I have been the engineer responsible for retrieval at a regional insurance carrier, where I built the system our claims adjusters use to search policy wordings, endorsements and internal guidance.
When I took it over, the assistant answered quickly and cited documents, but adjusters had stopped trusting it. The cause turned out to be the ingestion step. Policy forms were being split at fixed lengths, so exclusions were separated from the coverage sections they modified, and older endorsements were indexed alongside current ones with no date field. I rewrote the parser to chunk on the form's own section headings, added effective dates and state codes as filterable metadata, and set the default query to current forms only.
I then built the evaluation set the team had never had: several hundred real questions pulled from adjuster chat logs, each paired with the passages a senior adjuster marked as correct. Every change to chunking, embeddings or the reranker now runs against that set before release, and we review the failures together each week. The set has also become the fastest way to onboard new engineers, because it shows exactly what a right answer looks like in our business.
Security work took up more of my time than I expected. I added document-level permissions to the index so that underwriting memos never reach users outside underwriting, and I put a screening step in front of uploaded documents after a test showed that instructions hidden in a PDF could steer the model.
Your posting mentions multi-tenant search across customer content. I would like to bring the same discipline to that problem, and I would be glad to walk through the system in detail.
Sincerely, [Your Name]
Frequently asked questions
- What does an RAG Engineer do?
- A RAG Engineer builds retrieval-augmented generation systems: the pipelines that find relevant passages in a company's own documents and hand them to a large language model so its answers are grounded and cited. The role sits between search engineering, data engineering and applied AI, on platform or product teams at software companies, cloud providers and large enterprises. BLS does not report RAG engineers separately; for software developers, the occupation the role falls under, the May 2025 median wage was $135,980, with the 10th percentile at $82,460 and the 90th at $214,670.
- What are the main duties of an RAG Engineer?
- Core duties include: design ingestion pipelines that parse PDFs, web pages, tickets and tables into clean, well-labeled chunks ready for embedding and indexing; choose chunking rules that follow document structure, keeping headings, tables and exceptions attached to the passages they govern; and select and benchmark embedding models against a labeled question set before changing the model used in production.
- How is a RAG Engineer different from a machine learning engineer?
- A machine learning engineer's work centers on training and deploying models. A RAG Engineer works with models someone else trained and concentrates on what goes into them at query time: how documents are parsed, indexed, filtered, retrieved and cited. The skills overlap, but the RAG role draws more on search relevance and data pipelines than on model training.
- Which skills should an aspiring RAG Engineer learn first?
- Start with search fundamentals: keyword ranking with BM25, vector similarity, filtering and reranking. Then learn to build an evaluation set from real questions and score retrieval separately from the final answer. Python, SQL and one cloud platform tie the pieces together.
- Do long context windows make RAG unnecessary?
- Not necessarily. A study accepted for publication in Transactions of the Association for Computational Linguistics found that models often perform best when relevant information sits at the start or end of their input and significantly worse when it sits in the middle of long contexts. Retrieval still decides what the model sees and in what order.
- How is AI automation changing the RAG Engineer role?
- Some of the plumbing now ships as a managed feature. Microsoft's agentic retrieval in Foundry IQ (Azure AI Search) can use LLM-based query planning to break a complex question into smaller subqueries, run them in parallel and semantically rerank each set of results. The engineer still decides which sources an agent may search, how results are checked, and when the agent should stop.
- What security risks does a RAG Engineer need to handle?
- OWASP's RAG Security Cheat Sheet calls document poisoning, where malicious content is injected into the retrieval corpus, the most common and immediately exploitable RAG attack vector, and recommends recording a SHA-256 digest of each approved document in a separately controlled manifest. NIST AI 100-2e2025 catalogs indirect prompt injection attacks and describes resource control, in which an attacker controls external resources a model consumes at inference time, particularly in retrieval-augmented generation applications.
Sources
Salary figures and role details on this page were checked against the following sources. Dates show when each was last reviewed.
- Software Developers, BLS Occupational Employment and Wage Statistics (May 2025)Checked Nov 24, 2026
- Table 1.2 Occupational projections, 2025-35, and worker characteristics, 2025, U.S. Bureau of Labor Statistics (Aug. 27, 2026)Checked Nov 24, 2026
- Software Developers, Quality Assurance Analysts, and Testers, Occupational Outlook Handbook, U.S. Bureau of Labor Statistics (2025-35 projections, 2026)Checked Nov 24, 2026
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, NeurIPS Proceedings (2020)Checked Nov 24, 2026
- NIST AI 100-2e2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations, National Institute of Standards and Technology (March 2025)Checked Nov 24, 2026
- NIST AI 600-1, Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, National Institute of Standards and Technology (July 2024)Checked Nov 24, 2026
- OWASP Top 10 for LLM Applications 2025, OWASP Foundation (2024)Checked Nov 24, 2026
- RAG Security Cheat Sheet, OWASP Cheat Sheet Series, OWASP Foundation (2026)Checked Nov 24, 2026
- Overview of the TREC 2025 Retrieval Augmented Generation (RAG) Track, TREC 2025 Proceedings, National Institute of Standards and Technology (2026)Checked Nov 24, 2026
- TREC RAG: Retrieval-Augmented Generation Track, TREC RAG Track organizers (2026)Checked Nov 24, 2026
- Amazon S3 Vectors is now generally available with 40 times the scale of preview, Amazon Web Services (Dec. 2, 2025)Checked Nov 24, 2026
- pgvector CHANGELOG, pgvector project (2026)Checked Nov 24, 2026
- AWS Certified Generative AI Developer - Professional (AIP-C01) Exam Guide, Amazon Web Services (2026)Checked Nov 24, 2026
- NVIDIA-Certified Associate: Generative AI LLMs (NCA-GENL) certification exam, NVIDIA (2026)Checked Nov 24, 2026
- Lost in the Middle: How Language Models Use Long Contexts, Nelson F. Liu et al., arXiv (accepted to Transactions of the Association for Computational Linguistics)Checked Nov 24, 2026
- Agentic retrieval in Foundry IQ (Azure AI Search), Microsoft Learn (updated Nov. 23, 2026)Checked Nov 24, 2026
- Databricks Certified Generative AI Engineer Associate, DatabricksChecked Nov 24, 2026
Related job descriptions
See all Artificial Intelligence jobs →- AI Automation Engineer$82K–$215K
An AI Automation Engineer builds software that hands routine business work to AI models: pipelines that read documents, route tickets, update internal systems and pass uncertain cases to a person. The job sits inside software engineering, between application development, data engineering and the operations teams whose processes get automated. Employers include AI product companies, software publishers, IT consultancies, banks, health systems and government agencies. BLS does not track the title; for software developers, its closest occupation, the May 2025 median wage was $135,980, with the 10th percentile at $82,460 and the 90th at $214,670. As of 2026 the job also covers agent design: which tools a model may call and what it may never do without a person.
- AI Developer Advocate$82K–$215K
An AI Developer Advocate is a working engineer who helps outside developers succeed with an AI company's models, APIs, SDKs and agent tooling. The job sits in a developer relations team, and its output is code and teaching: sample apps, quickstarts, tutorials, conference talks, community support and structured feedback to the product team. It is not a sales job; the audience is the developers building on the platform, not a buyer in a deal. BLS does not report developer advocates separately. For the nearest occupation, Software Developers, the May 2025 national pay band ran from $82,460 at the 10th percentile to $214,670 at the 90th, with a median of $135,980.
- AI Infrastructure Engineer$82K–$215K
An AI Infrastructure Engineer builds and runs the compute platform that machine learning teams train and serve models on: GPU servers, high-speed fabrics, parallel storage, job schedulers and the monitoring that holds it together. The role sits between platform engineering and ML research, working inside AI labs, cloud providers, large enterprise technology groups and university research computing centers. BLS does not track the title separately, so pay here uses its nearest occupation, Software Developers: a May 2025 median of $135,980, with the 10th and 90th percentiles at $82,460 and $214,670.
- AI Systems Engineer$82K–$215K
An AI Systems Engineer designs, builds and operates the production systems that put AI models to work: the data pipelines, retrieval layers, serving endpoints, guardrails, evaluation suites and monitoring that surround a model. The role sits where software, data and machine learning engineering meet, at AI product companies, cloud providers, software publishers and enterprises running their own AI applications. Federal wage data has no line for the title. The closest occupation, Software Developers, paid $135,980 at the May 2025 median, $82,460 at the 10th percentile and $214,670 at the 90th.
- Context Engineer$82K–$215K
A context engineer designs everything a large language model sees before it responds: system instructions, retrieved documents, conversation memory, tool definitions and tool outputs, all fitted to a token budget. The role sits on AI product and platform teams that build agents and assistants, between the people who write instructions and the people who build search infrastructure, and it owns the assembly, memory and evaluation of that context. BLS does not track the title. Its nearest occupation, software developers, paid a median of $135,980 in May 2025, with the 10th percentile at $82,460 and the 90th percentile at $214,670.
- Edge AI Engineer$82K–$215K
An Edge AI Engineer takes trained machine learning models and makes them run on the device itself, such as cameras, robots, vehicles, sensors and medical instruments, within tight limits on latency, memory and power. The job sits between machine learning research and embedded engineering, combining model compression with C and C++ firmware work, runtime integration and on-target testing. Its nearest BLS occupation is software developers, whose May 2025 national wages ran from $82,460 at the 10th percentile to $214,670 at the 90th, with a $135,980 median. Employers include chip makers, robotics and automotive companies, and industrial and consumer device firms.