Skip to main content

AI_MAX_PROMPT_CHARS

Constant AI_MAX_PROMPT_CHARS 

Source
pub const AI_MAX_PROMPT_CHARS: usize = 12_000;
Expand description

Maximum total prompt length (chars) sent to the LLM for enrichment. Metadata context (Magika, extracted metadata, similar files) is always included first. Raw file content fills the remaining budget. Default: 12000 chars (~=3000 tokens) – leaves headroom for LLM response within a 16K context window.