Skip to main content

max_entities_per_memory

Function max_entities_per_memory 

Source
pub fn max_entities_per_memory() -> usize
Expand description

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

v1.0.43: makes the cap (default 50) configurable via SQLITE_GRAPHRAG_MAX_ENTITIES_PER_MEMORY. Stress tests showed inputs with 33-46 candidates being truncated at the old cap of 30. Values outside [1, 1000] fall back to the default.