mergeContributions
@forge/monorepo / backend/src / mergeContributions
Function: mergeContributions()
mergeContributions(
parts):GraphContribution
Defined in: backend/src/knowledge/graph.ts:255
Many chunks' contributions, merged into one source's contribution.
Where surface forms accumulate and edge weights are counted. The canonical name is the one that sorts
first among everything merged — an arbitrary rule, chosen because it is stable: "first seen" would depend
on chunk order, and chunk order is a thing that can change without the document changing.
Parameters
parts
readonly GraphContribution[]