Skip to main content

Module objectives

Module objectives 

Source
Expand description

Retrieval Objective implementations for khive-runtime.

Domain-specific objectives that operate on pre-computed retrieval signals. Pure math: no IO, no async. The runtime layer materialises the signal data and feeds it in via the candidate struct.

See ADR-061 — Retrieval Infrastructure.

Structs§

GraphProximityObjective
Scores a candidate by graph proximity to anchor nodes.
RetrievalCandidate
Pre-computed retrieval signals for a single candidate entity.
RrfFusionObjective
Scores a candidate by its pre-computed RRF fusion score.
TextRelevanceObjective
Scores a candidate by BM25/FTS relevance.
VectorSimilarityObjective
Scores a candidate by cosine similarity to the query vector.