Skip to main content

MAX_EMBED_PASSAGE_FAN_OUT

Constant MAX_EMBED_PASSAGE_FAN_OUT 

Source
pub const MAX_EMBED_PASSAGE_FAN_OUT: usize = 16;
Expand description

Highest REST fan-out width the batched passage embedder will use (v1.2.8, plan step 6).

Kept inside the range Cloudflare tolerates in front of OpenRouter, and deliberately equal to crate::constants::MAX_ENRICH_REST_CONCURRENCY: both bound concurrent requests against the SAME host-scoped quota, whose key lives once in ~/.config/sqlite-graphrag/config.toml and is spent by every folder on the machine. The joint ceiling from crate::constants::joint_parallelism_ceiling still applies on top, because only the PRODUCT of process count and per-process width describes the load.