Skip to main content

max_relationships_per_memory

Function max_relationships_per_memory 

Source
pub fn max_relationships_per_memory() -> usize
Expand description

Resolves the per-memory relationship cap, honouring the env-var override.

v1.0.22: makes the cap (default 50) configurable via SQLITE_GRAPHRAG_MAX_RELATIONS_PER_MEMORY. Audit found that rich documents silently hit the cap; users with dense technical corpora can raise it via env. Values outside [1, 10000] fall back to the default.