Retrieval-Augmented Generation (RAG)
What it is
RAG combines a search step with a language model: the system retrieves passages related to the question from a knowledge source, then the model writes an answer using them.
Why it matters
RAG made AI support answers far more accurate than a model alone. Its limit is that it can only find what's been written down, so it can't diagnose a new bug or explain one customer's data.
Best practices
- Keep sources fresh – Retrieval is only as good as the index.
- Show retrieved sources – Let customers and agents check them.
- Know when to go further – Route questions that need investigation to an agent that can query live systems.
How Decimal helps
Decimal uses retrieval for what's documented and goes further with investigation across code, logsLogsTimestamped records of events a system emits as it runs., and data for what isn't.