Retrieval-augmented generation — Legalnaut glossary  A Markdown version of this page is available at https://legalnaut.com/glossary/rag.md for AI and LLM tools. 

  Retrieval-augmented generation
==============================

 Retrieval-augmented generation is a technique where a language model is given relevant documents to read before it answers, instead of answering from memory.

It is the difference between asking a model what it recalls about a topic and asking it to answer from a specific file in front of it.

For legal work the retrieval half is what matters. An answer is only as good as the documents that were fetched to support it, and an answer that cannot name those documents cannot be checked.

 Related: [Hallucination](https://legalnaut.com/glossary/hallucination), [Claim](https://legalnaut.com/glossary/claim)

 Legalnaut builds this out of your own case file. [See the plans](https://legalnaut.com/pricing).

 SCREENSHOT

    ![]()
