Skip to main content

SEMANTIC_RELEVANCE_FLOOR

@forge/monorepo


@forge/monorepo / backend/src / SEMANTIC_RELEVANCE_FLOOR

Variable: SEMANTIC_RELEVANCE_FLOOR

const SEMANTIC_RELEVANCE_FLOOR: 0.55 = 0.55

Defined in: backend/src/persistence/index.ts:1461

The floor above which a vector hit is worth having (#136).

0.5 is orthogonal — see VectorSearchHit.score — so anything at or below it shares nothing with the query. 0.55 is comfortably above that and still admits a weak-but-real match. Without a floor, retrieval always returns something, and a model handed the least-bad chunk cites it: this constant is what makes an honest empty result possible at all.

Deliberately absolute, unlike the fusion floor which is relative to the best hit. They answer different questions — "is this hit any good" and "is this hit much worse than the best" — and one instrument cannot do both: a relative floor can never reject a result set that is uniformly poor, because something is always the best of it.