Expand description
Generic sidecar search index wrapping FibScorer.
FibSidecarIndex<Id> stores caller-owned IDs alongside encoded
FibCodeV1 artifacts and provides approximate nearest-inner-product
search via the Gram-table estimator in FibScorer. The index is a
sidecar: it produces approximate candidates that callers must rerank
with an exact inner-product computation against the original (un-encoded)
vectors before acting on the result.
§Model
- The caller constructs a
FibScoreronce (which builds the codebook Gram table). - The caller encodes vectors with [
FibQuantizer::encode] and adds them to the sidecar index viaFibSidecarIndex::add/add_batch. - At query time, the caller passes a raw query slice. The sidecar calls
FibScorer::inner_product_estimatefor every stored code, sorts the results in descending order of approximate score, and returns the toptop_k * oversamplecandidates. FibSidecarIndex::search_with_receiptadditionally returns aSearchReceiptV1documenting the approximate nature of the results.
Structs§
- FibSidecar
Index - Generic ID-typed sidecar search index.
- IvfCoarse
Quantizer - IVF (Inverted File) coarse quantizer for sub-linear search.
- Scored
Candidate - A scored candidate from approximate sidecar search.
- Search
Receipt IvfV1 - Receipt documenting an IVF-accelerated approximate sidecar search.
- Search
Receipt V1 - Receipt documenting an approximate sidecar search.