Module anchor_index

Source
Expand description

Anchor-space invariant index (RFC-011).

Indexes entities in anchor-projected space (ℝᴷ) where K = number of anchors. Vectors from DIFFERENT embedding models are directly comparable when projected through the same anchor set, enabling cross-model search and trajectory analysis.

§Why flat scan?

K is typically 5-20 (number of clinical/semantic anchors). For 1M points in ℝ¹⁰, a flat scan with SIMD L2 takes ~10ms — fast enough for most use cases.

Structs§

AnchorDriftReport
Drift report in anchor-projected space.
AnchorSetConfig
Configuration for an anchor set.
AnchorSpaceIndex
An index operating in anchor-projected space (ℝᴷ).
AnchorSpaceSnapshot 🔒

Enums§

AnchorMetricSerde
Serializable anchor metric (mirrors AnchorMetric).