Retrieval-augmented generation (RAG)
Not every capability described on this wiki is available today.
Quick answer
Retrieval-augmented generation, or RAG, is a technique where an AI first retrieves relevant text from a chosen source and then uses it to write its answer, which can make the answer better grounded.
Summary
A language model answers from patterns it learned in training, which can be out of date or wrong. RAG adds a lookup step so the model can see relevant source text when it answers. It can reduce unsupported answers but does not remove the need to check important output.
Key takeaways
- RAG retrieves source text first, then generates an answer from it.
- It can ground answers in documents the model was not trained on.
- It can reduce, but not eliminate, hallucination.
- It is often used alongside tool calling.
In context
RAG is one way to give a large language model fresh or private information. It addresses a cause of AI hallucination but does not remove it. Agents often combine retrieval with tool calling. For the broader picture, read what are AI agents, agentic AI and AI safety and auditability.
How Mitra OS fits
Mitra OS describes its AI as read-and-draft only, grounded in live data and audit-logged. Which data sources ground answers, and whether retrieval is used, is not documented yet.
Frequently asked questions
People also ask
- What does LLM stand for? (Large language model (LLM))
- Is an LLM the same as an AI agent? (Large language model (LLM))
- Why can an LLM be wrong? (Large language model (LLM))
- Which model does Mitra OS use? (Large language model (LLM))
- Why do AI models hallucinate? (AI hallucination)
Related topics
Glossary terms on this page
- MITRA: MITRA is the orchestration platform behind Mitra OS. Mitra is the name you talk to, and Mitra OS, Inc. is the company that builds it.
- Agentic AI: Agentic AI describes AI systems that work toward a goal across several steps, choosing actions and using tools, instead of only replying to a single prompt.
- AI hallucination: An AI hallucination is output from a model that sounds confident but is wrong or invented, such as a false fact, a fake source or an incorrect figure.