Glossary

RAG (retrieval-augmented generation)

RAG means having a language model answer from selected documents: the system first retrieves the relevant passages, then the model writes its answer from them and cites its sources.

How it works

  1. Index: documents (procedures, contracts, regulations) are split into passages and indexed for search.
  2. Retrieve: for each question, the system finds the closest passages, by meaning and by keywords.
  3. Generate: the model receives the question and those passages, and writes an answer that points back to the sources.

Why it is useful in finance

Typical uses: questions on internal procedures, search across contracts and term sheets, help reading regulatory texts, support for compliance teams.

Points to watch

Related terms

A RAG on your documents, in a few hours?

At the Lab we build a prototype that answers from your own documents, at a fixed price, so you can judge for yourself.

Discover the Lab Our AI offer

Worth a look