Skip to content

Glossary: Evaluating LLM Apps

Regular expression

Also written: regex, regexes, re.search, re.findall, re.I

A pattern that describes text, used to check an answer for key facts, e.g. `6\.95` or `credit|different coffee`. `re.I` ignores case.

Where the book teaches it

Related terms

Raw stringGroup (regex)must_include / must_not