Skip to content

Glossary: RAG Beyond the Basics

Demo mode

Also written: RAG_DEMO

Setting `RAG_DEMO=1` replaces every model call with a stand-in so the code runs for free without an API key. The scores it produces are meaningless.

Where the book teaches it