Skip to main content

DEFAULT_COMMUNITY_LEVELS

@forge/monorepo


@forge/monorepo / backend/src / DEFAULT_COMMUNITY_LEVELS

Variable: DEFAULT_COMMUNITY_LEVELS

const DEFAULT_COMMUNITY_LEVELS: 2 = 2

Defined in: backend/src/knowledge/communities.ts:176

How many levels of hierarchy to build.

Two is the minimum AC-1 asks for and the useful default: level 0 is fine-grained clusters and level 1 groups them. More levels on a small graph collapse to the same partition repeated, which costs summarisation calls for no new information — so the loop stops early when a level stops merging anything.