Expand description
scr-runtime-compression — Runtime integration adapter for semantic-memory.
Provides:
CompressedSearchPath— search path wrapper that carries compression metadataExactFallbackAdapter— decode adapter that decompresses via turbo-quant / fib-quant
§Design principles
- Never owns codec truth — all compression/decompression is delegated to
turbo-quantandfib-quant. This crate holds only the integration layer. - No
unwrapin production paths — all fallible operations returnResultorOption. - Rust 2021, MSRV 1.75 — compatible with the workspace minimum.
Structs§
- Compressed
Search Path - A search path annotated with compression context.
- Exact
Fallback Adapter - Decodes compressed data into exact (full-precision) vectors.
Enums§
- Codec
Dispatch - Codec dispatch strategy.
- CodecId
- Codec identity for runtime dispatch.
- Compression
Error - Errors that can occur during compression operations.
- Decompress
Error - Errors that can occur during decompression operations.
Functions§
- build_
adapter - decode
- Decode a previously encoded vector.
- encode
- Encode a vector through the codec specified by
codec_id. - select_
codec - Evaluate policy and return the selected codec.