Skip to main content

Module serde

Module serde 

Source
Expand description

Serialization/deserialization for vector database storage.

This module implements the key/value encoding scheme defined in RFC 0001.

Modules§

centroid_chunk
CentroidChunk value encoding/decoding.
centroid_stats
CentroidStats value encoding/decoding.
collection_meta
CollectionMeta value encoding/decoding.
deletions
Deletions value encoding/decoding.
id_dictionary
IdDictionary value encoding/decoding.
key
Key encoding/decoding for vector database records.
metadata_index
MetadataIndex value encoding/decoding.
posting_list
PostingList value encoding/decoding.
vector_bitmap
VectorBitmap - shared bitmap type for storing sets of vector IDs.
vector_data
VectorData value encoding/decoding.

Structs§

EncodingError
Encoding error with a descriptive message.

Enums§

FieldType
Type discriminant for metadata field values.
FieldValue
A metadata field value (tagged union).
RecordType
Record type enumeration for vector database records.

Constants§

KEY_VERSION
Key format version (currently 0x01)

Traits§

Decode
Trait for types that can be decoded from bytes.
Encode
Trait for types that can be encoded to bytes.
RecordKey
Trait for record keys that have a record type.

Functions§

decode_array
Decode an array of decodable items.
decode_fixed_element_array
Decode a fixed-element array (no count prefix).
decode_optional_utf8
Decode an optional non-empty UTF-8 string.
decode_utf8
Decode a UTF-8 string.
encode_array
Encode an array of encodable items.
encode_fixed_element_array
Encode a fixed-element array (no count prefix).
encode_optional_utf8
Encode an optional non-empty UTF-8 string.
encode_utf8
Encode a UTF-8 string.
record_type_from_tag
Extracts the RecordType from a RecordTag.