# What is RAG? Retrieval-augmented generation | MyRecords

> RAG, retrieval-augmented generation, means the system first finds the relevant text or records and then asks the model to answer from them. Example and limits.

Canonical: https://myrecords.cloud/resources/glossary/rag/
Last updated: 2026-12-03

Glossary · AI

**What is RAG?**

Definition

Retrieval-augmented generation (RAG) is a method where the system first retrieves relevant text or records and then gives them to a language model to answer from.

Subject

AI

Applies

In any country

Also called

retrieval-augmented generation, retrieval augmented generation, search by meaning, semantic search, vector search

Term 113 of 150, A to Z Updated 3 Dec 2026

## What it means

A language model knows only what it was trained on. It has never seen your customers, items or tickets. Retrieval-augmented generation closes that gap in two steps. First the system retrieves the pieces of your data that fit the question. Then it sends those pieces to the model with the question, and the model answers from them.

Retrieval is often done by meaning, not by exact words. Each record’s text is turned into a list of numbers that stands for its meaning, and the lists are kept in an index. A question is turned into numbers the same way, and the nearest records are returned. So “the pump supplier from Vijayawada” can find a supplier whose record never uses those exact words.

RAG is good at finding and describing. It is not a way to count or add up. Retrieval returns the closest few records, not all of them.

## Example

| Question | Right method | Why |
| --- | --- | --- |
| “Which supplier sold us the borewell pumps?” | Retrieval by meaning | The answer is a record to find |
| “What did the customer say about late delivery?” | Retrieval by meaning | The answer is in the text of a ticket or a note |
| “How many invoices are unpaid?” | An exact lookup | The answer is a count over every matching record |

## Common mistakes

-   Using retrieval to produce a total. The closest ten records are not all the records.
-   Forgetting permissions. If the index ignores who is asking, search becomes a way round access control.
-   Sending whole documents to build the index when a few descriptive fields would do.
-   Letting the index go stale. It must be updated as records change.

## In MyRecords

Search by meaning covers 15 kinds of record, indexed as they are saved. Only a few descriptive fields are sent to the AI provider to build the index, never amounts or attachments, and the index is kept in your own database. Results are filtered by the searching person’s permissions at the moment of the search. Counts and totals use an exact lookup, not retrieval. See [ask your records](https://myrecords.cloud/product/ai-assistant/ask-your-records/) and [AI privacy and masking](https://myrecords.cloud/product/ai-assistant/ai-privacy-and-masking/).

## More ai terms

[All ai terms](https://myrecords.cloud/resources/glossary/#ai)

-   [AI agent An AI agent is a language model given a job, a trigger and limits. It starts on a schedule or an event, reads what it may read and leaves a result.](https://myrecords.cloud/resources/glossary/ai-agent/)
-   [Human in the loop Human in the loop means an AI system proposes an action and a person approves, corrects or rejects it before it takes effect.](https://myrecords.cloud/resources/glossary/human-in-the-loop/)
-   [OCR Optical character recognition (OCR) turns the text in a photo, scan or PDF image into characters that a computer can search, copy and store.](https://myrecords.cloud/resources/glossary/ocr/)

Any business, anywhere

## Put these terms to work in your books.

Accounting, tax, stock, payroll and loans in one system, customised to the way you work.

[See every app](https://myrecords.cloud/product/) [Works worldwide](https://myrecords.cloud/solutions/worldwide/)

Free, no obligation

Request a quote

-   For the apps and modules you pick
-   At our best price, in writing
-   Your questions, answered by our team

[Request a quote](https://myrecords.cloud/contact/?topic=quote) [or contact us](https://myrecords.cloud/contact/)
