Skip to content

Glossary: RAG Basics

Budget

Also written: character budget

The most source text, counted in characters, that a prompt may hold. `format_sources` stops adding chunks before the total passes it, so one huge chunk can't make every question slow and costly.

Where the book teaches it

Related terms

Token