Skip to main content

MAX_ENRICH_REST_CONCURRENCY

Constant MAX_ENRICH_REST_CONCURRENCY 

Source
pub const MAX_ENRICH_REST_CONCURRENCY: u32 = 16;
Expand description

Highest REST fan-out enrich --mode openrouter accepts (GAP-SG-266).

The ceiling protects the shared OpenRouter quota, which is a HOST-scoped scarcity: the key lives once in ~/.config/sqlite-graphrag/config.toml and every folder on the machine spends from it. It is enforced twice on purpose — the clap parser REFUSES an out-of-range flag, and commands::enrich::events::parallelism clamps whatever reaches it, so a caller that bypasses the parser still cannot exceed the ceiling. That module is an internal hook with no public page, so this is a code span and not a link.