Retrieval-augmented generation (RAG)
In more depth
A RAG system first searches a designated corpus—case law, firm documents, a contract repository—usually via embeddings in a vector database, then passes the best matches to the model along with the question. Because answers are tied to retrieved sources, they are easier to verify, which is why most legal research and document-question tools are built this way. Quality depends on the retrieval step: if the right passage is not found, the model may still guess, so verification duties remain.
Further reading: Wikipedia.
Related terms
Educational information, not legal advice. AI terminology and tools change quickly; definitions reflect usage as of the last-updated date. For what bar associations and courts actually require of lawyers using AI, see legalaicompliance.help and consult a licensed attorney in your jurisdiction.