Skip to main content

We have rebranded from Iqidis — meet Irys. A new identity for the future of legal work.

AI Concepts

Retrieval-Augmented Generation (RAG)

Definition

Retrieval-augmented generation is an AI architecture that supplements a language model's response by first retrieving relevant documents from an external knowledge base and then using those documents as context for generating an answer. In legal applications, RAG grounds AI output in actual case law, statutes, and firm documents rather than relying solely on the model's training data.

A standard large language model generates answers based entirely on patterns learned during training. RAG adds a retrieval step: before the model generates a response, a search system finds the most relevant documents from a curated corpus and injects them into the model's context. The model then generates its answer based on this retrieved evidence.

For legal work, this architecture is transformative. Instead of asking a model what it remembers about a legal topic, RAG ensures the model is looking at actual case law, statutes, or internal firm documents when formulating its response. This dramatically reduces hallucination risk and allows the system to cite specific sources that the lawyer can verify.

The quality of a RAG system depends heavily on the retrieval layer. A system that retrieves irrelevant documents will produce poor answers regardless of how capable the language model is. Legal RAG systems must handle the nuances of legal citation, distinguish between binding and persuasive authority, and understand jurisdictional relevance. The embedding models and search algorithms used for retrieval must be tuned for legal language, which differs substantially from general English.

How Irys approaches this

Irys uses a multi-stage RAG pipeline that retrieves from both public legal databases and firm-specific knowledge, ranking results by jurisdictional relevance and authority weight before generating any response.

Related terms

See Retrieval-Augmented Generation (RAG) in action

Irys One brings research, drafting, and document intelligence together in one platform. Try it free for 14 days.

Try Irys free