Ryz Labs/Glossary/Retrieval-augmented generation (RAG)
Glossary

What is retrieval-augmented generation (RAG)?

Retrieval-augmented generation (RAG) is a technique where a system first retrieves relevant information from a knowledge source and then passes it to a language model to generate an answer.

Definition: Retrieval-augmented generation (RAG) is a technique where a system first retrieves relevant information from a knowledge source and then passes it to a language model to generate an answer. The term comes from a 2020 research paper by Patrick Lewis and colleagues, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks."

How RAG works

Documents are split into chunks, converted into embeddings and stored in a search index, often a vector database. When a user asks a question, the system finds the most relevant chunks, adds them to the prompt, and the model answers based on that context. Many systems combine vector search with keyword search and a reranking step, and return citations so users can check the source.

When a company needs it

RAG fits when answers must reflect private or frequently changing information, such as policies, contracts, product documentation or support history, without retraining a model. Quality depends heavily on chunking, retrieval, access controls and evaluation, which is where most engineering effort goes.

How Ryz helps

Ryz RAG engineers and AI pods build retrieval systems in your cloud and repos, working on your team with models from providers such as Anthropic and OpenAI.

Related

Thanks — your message has been sent. We’ll get back to you soon.

Something went wrong while sending your message. Please try again or email info@ryzlabs.com.

Ryz Labs

Senior engineers on your team. AI pod teams that ship.

Tell us what you're building. You get a scoped plan, a price and the names of the people who would do the work.

  • Only the top 1% of tens of thousands interviewed make it
  • On US business hours, including New York hours
  • Trusted by Fortune 500 engineering teams

Tell us who you need

A Ryz partner replies with a scoped team plan.

Start a conversation →

Prefer to talk? Book a 15-min call →