Skip to content

Glossary: RAG Beyond the Basics

Regular expression

Also written: regex, re

A pattern for matching text, used here to find headings (`#{1,6} (.*)`) and citations like `[S2]`.

Where the book teaches it

Related terms

Heading pathClaim-level grounding