Skip to main content

Module codec

Module codec 

Source

Enums§

CodecName
Identity tag for a rerank codec — used to detect mismatch when a search requests a different codec than the sidecar was built with.
PreparedQuery
Prepared query form — opaque payload held by the caller between prepare_query and distance_prepared calls. New variants will be added as specific codec impls land in later sub-tasks.

Traits§

RerankCodec
Object-safe trait for asymmetric rerank codecs. Each impl wraps an existing nodedb-codec::VectorCodec and exposes a uniform shape so the sidecar can hold Arc<dyn RerankCodec> regardless of the underlying associated-type machinery.

Functions§

rerank_codec_from_bytes
Reconstruct a RerankCodec from its byte form. The name tag tells us which wrapper to dispatch into; the bytes are the codec’s own format.