Skip to main content

Module eval

Module eval 

Source
Expand description

Benchmark and evaluation harness for FibQuant.

Provides a typed benchmark receipt (FibBenchmarkReceiptV1) capturing recall@K, nDCG@K, compression ratio, cosine similarity, MSE, and timing for a corpus of vectors queried against a FibQuant-quantized database.

Structs§

FibBenchmarkCorpus
A corpus of database vectors, queries, and ground-truth top-K labels.
FibBenchmarkReceiptV1
Typed benchmark receipt produced by run_benchmark.

Constants§

BENCHMARK_SCHEMA
Schema version stamp for benchmark receipts.

Functions§

ndcg_at_k
nDCG@K: normalized Discounted Cumulative Gain at K.
recall_at_k
Recall@K: fraction of true top-K items found in the approximate top-K.
run_benchmark
Run a full benchmark on a corpus with a FibQuantizer.