Retrieval (RAG)
Retrieval-augmented generation, often called RAG, is a design in which the system searches a collection of documents first and then has the model answer from the passages it found. Many legal research tools, and many tools that work over a firm’s own files, are built this way.
The process has two stages. First, a search step looks through a set collection, such as a case law database, the firm’s document system or a discovery production, and picks out the passages that seem most relevant. Many tools search by meaning as well as by keyword, so a search for “firing” can find opinions that only say “termination.” Second, those passages go into the model’s context window with your question, and the model writes an answer drawing on them.
Each stage can fail on its own. The search can miss the controlling case, or pull an outdated version of a document. The model can then misread a passage it was given, or combine passages into a conclusion none of them supports.
Stanford researchers who tested leading legal research tools found that retrieval substantially reduced fabricated citations but did not eliminate hallucination, and that vendor claims that these designs prevent hallucination were overstated. They also found that the errors that remain, such as a real case described wrongly, are harder to detect than fabricated ones.
- Ask what collection the tool searches and how current it is. An answer can only be as complete as the material the search could reach.
- Aim review at whether each source says what the answer claims. Retrieval makes invented citations rarer and leaves mischaracterization in place.
- When a tool searches firm documents, confirm that it respects ethical walls and matter permissions, so one client’s material cannot surface in an answer about another client’s matter.
- Read “grounded” in a sales pitch as a description of the design. It is no reason to drop the verification step.
See where your firm stands
The self-check places your firm on one of five levels and builds a roadmap for your practice.
