Skip to main content

Module kernel_interop

Module kernel_interop 

Source
Expand description

Kernel ↔ VSA interop layer (non-FUSE).

This module defines a minimal abstraction boundary between a kernel/runtime and the VSA substrate. The goal is to keep non-FUSE builds first-class by avoiding any dependency on the FUSE shim while still enabling:

  • reversible encode/decode for byte payloads
  • algebraic VSA ops (bundle, bind, similarity)
  • a retrieval seam (candidate generation + optional rerank)

Structs§

SparseVecBackend
Default backend for today: the existing SparseVec substrate.

Enums§

KernelInteropError
Errors from kernel↔VSA interop helpers.

Traits§

CandidateGenerator
Candidate generation seam. Intended to wrap e.g. TernaryInvertedIndex.
VectorStore
Minimal vector store abstraction.
VsaBackend
Backend-agnostic VSA operations exposed to a kernel/runtime.

Functions§

rerank_top_k_by_cosine
Rerank a set of candidate IDs by exact cosine similarity.