Skip to main content

Crate scr_runtime_compression

Crate scr_runtime_compression 

Source
Expand description

scr-runtime-compression — Runtime integration adapter for semantic-memory.

Provides:

§Design principles

  • Never owns codec truth — all compression/decompression is delegated to turbo-quant and fib-quant. This crate holds only the integration layer.
  • No unwrap in production paths — all fallible operations return Result or Option.
  • Rust 2021, MSRV 1.75 — compatible with the workspace minimum.

Structs§

CompressedSearchPath
A search path annotated with compression context.
ExactFallbackAdapter
Decodes compressed data into exact (full-precision) vectors.

Enums§

CodecDispatch
Codec dispatch strategy.
CodecId
Codec identity for runtime dispatch.
CompressionError
Errors that can occur during compression operations.
DecompressError
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.