# What is RAG? Retrieval-augmented generation

> RAG combines search and a language model: relevant passages are retrieved first, then the AI writes an answer with sources. A plain-English explanation.

Source: https://akaia-platform.de/en/glossary/rag
Language: en

---

Search & knowledge

## What is RAG (retrieval-augmented generation)?

Retrieval-augmented generation (RAG) is a method in which a system first retrieves relevant passages from your own sources and a language model then writes an answer grounded in those sources.

Also: Retrieval-Augmented Generation · Retrieval Augmented Generation

A [language model](https://akaia-platform.de/en/glossary/large-language-model) only knows what was in its training data. Your contracts, manuals and emails were not part of it. RAG closes that gap without retraining the model: the answer is built from content that is retrieved at the moment the question is asked.

### How RAG works

1.  **Indexing:** documents are split into chunks and made searchable, often also as meaning vectors (embeddings).
2.  **Retrieval:** for a question, the system finds the most relevant chunks, frequently combining keyword and semantic search.
3.  **Generation:** the retrieved chunks are passed to the language model together with the question. It writes an answer and points to its sources.

### Why RAG matters for companies

RAG makes answers verifiable, because every statement traces back to a passage. It lowers the risk of [hallucinations](https://akaia-platform.de/en/glossary/hallucination) but does not remove it. It also stays current: when a document changes, it is re-indexed, no training required. The deciding question is who may find which sources, so retrieval has to respect permissions.

### Example

An employee asks: “What is the notice period in our framework agreement with supplier X?” The system finds the contract and the relevant clause, the model answers in one sentence and links to the page in the PDF. The employee checks the passage with one click.

Read more in our article on [enterprise search and RAG](https://akaia-platform.de/en/blog/enterprise-search-rag).

### Sources

-   [Lewis et al. (2020): Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://arxiv.org/abs/2005.11401)

### How AKAIA uses it

AKAIA uses RAG in enterprise search and in chat. Thorough search combines semantic and keyword search, and the AI overview is built from the eight best hits with a source behind every statement. In chat, the "Use knowledge" switch brings in your knowledge collections and synced apps, with page numbers in citations from PDFs.

-   **[Enterprise search](https://akaia-platform.de/en/search)**

    Find company knowledge across your apps, with sources.

-   **[AI chat](https://akaia-platform.de/en/chat)**

    Every model processed in the EU.

-   **[Documents](https://akaia-platform.de/en/documents)**

    Analyse, cite and create files.

Glossary

### Related terms

Terms that often come up together.

-   ### [Enterprise search](https://akaia-platform.de/en/glossary/enterprise-search)

    Workplace search

    Enterprise search brings content from several of a company's applications into one shared index and makes it searchable with a single query.

-   ### [Embedding](https://akaia-platform.de/en/glossary/embedding)

    Vector embedding

    An embedding is a list of numbers (a vector) that represents the meaning of a text, image or other content, so that content with similar meaning sits close together in that numerical space.

-   ### [Vector database](https://akaia-platform.de/en/glossary/vector-database)

    Vector store

    A vector database stores embeddings, numerical vectors that represent the meaning of content, and quickly returns the entries most similar in meaning to a query.

-   ### [Hallucination (AI)](https://akaia-platform.de/en/glossary/hallucination)

    AI hallucination

    A hallucination is a statement from an AI model that sounds plausible and confident but is false or made up, such as a non-existent source, a wrong date or an invented figure.

-   ### [Large language model (LLM)](https://akaia-platform.de/en/glossary/large-language-model)

    LLM

    A large language model (LLM) is an AI model trained on very large amounts of text that understands and generates language by predicting, token by token, the most likely next piece of text.

#### Related pages

-   **[Customer service](https://akaia-platform.de/en/use-cases/customer-service)**

    Use cases

-   **[IT & Engineering](https://akaia-platform.de/en/use-cases/it-support)**

    Use cases

Next step

### From definition to practice.

Search, chat, agents and tasks in one platform. Hosted in Frankfurt, every model processed in the EU.

[Get started](https://app.alphos-services.com/register) · [Talk to sales](https://akaia-platform.de/en/contact)

No per-seat fee · From €399 a month · Cancel monthly
