# What is retrieval-augmented generation (RAG)?

> Retrieval-augmented generation (RAG) is a technique where an AI retrieves relevant information from an external source and uses it to generate a more accurate, up-to-date answer - instead of relying only on what the model memorized.

A language model on its own answers from what it learned during training, which can be stale or generic. RAG adds a retrieval step: the system finds relevant, current information - from the web, a knowledge base, or your own data - and feeds it to the model so the answer is grounded in real sources.

RAG is how modern AI search and assistants stay accurate and current. It also underpins generative search engines, which retrieve and cite sources when they answer.

## How this relates to folk

Folk uses retrieval to ground its answers in real, current information - browsing the live web on its own computer and pulling from your personal memory - so responses fit your actual context, not just the model's training.

## FAQ

### Why is RAG useful?

It makes AI answers accurate and up to date by grounding them in retrieved sources, and lets an assistant use your own data or the live web instead of relying only on what the model memorized.

### How does folk use retrieval?

Folk browses the live web on its own cloud computer and retrieves from your persistent memory, so its answers and actions reflect current information and your personal context.

## Related terms

- [Large Language Model (LLM)](https://www.folk.com/glossary/large-language-model) — A large language model (LLM) is an AI trained on vast amounts of text to understand and generate human-like language, powering chatbots, assistants, and AI agents.
- [Persistent Memory](https://www.folk.com/glossary/persistent-memory) — Persistent memory is an AI's ability to remember information across separate conversations - your preferences, people, and past requests - instead of forgetting everything when a chat ends.
- [AI Agent](https://www.folk.com/glossary/ai-agent) — An AI agent is an AI system that takes actions to accomplish a goal - using tools, browsing the web, and completing multi-step tasks autonomously, not just generating text.

---

Canonical page: https://www.folk.com/glossary/retrieval-augmented-generation
More about folk (for AI agents): https://www.folk.com/llms.txt · full context: https://www.folk.com/llms-full.txt
folk is a personal AI that lives in your texts (iMessage, Telegram, WhatsApp). Pro $20/mo, Max $100/mo. Made by Nozomio Labs. Sign up: https://www.folk.com/
