Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / FusionWeights

Interface: FusionWeights

Defined in: packages/memory/src/tiers/semantic-memory.ts:90

Per-list weights for FusionStrategy 'weighted' fusion (X-2), keyed by retriever kind rather than position so they survive the P2-3 multi-query fan-out (which appends extra FTS / vector candidate lists). Each defaults to the neutral 1 (≡ RRF). The HyDE list is a vector list and takes the vector weight.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
entity?readonlynumberWeight applied to the exact entity-match candidate list (D5). Default 1.packages/memory/src/tiers/semantic-memory.ts:103
fts?readonlynumberWeight applied to every FTS5 (lexical) candidate list. Default 1.packages/memory/src/tiers/semantic-memory.ts:92
graph?readonlynumberWeight applied to the graph-expansion candidate list (D5). Default 1 (the previous neutral behaviour). Tune it once the graph leg's reliability is calibrated against labels - the roadmap's "graph as a first-class tunable fusion weight" (was hardcoded neutral).packages/memory/src/tiers/semantic-memory.ts:101
vector?readonlynumberWeight applied to every vector (incl. HyDE) candidate list. Default 1.packages/memory/src/tiers/semantic-memory.ts:94