Skip to main content

Module delta

Module delta 

Source
Expand description

Delta Encoding for Vector Updates

This module provides efficient storage of vector updates by encoding only the differences (deltas) between consecutive vector versions. This is useful for frequently updated vectors where changes are typically small.

Key features:

  • Sparse delta encoding (only changed components stored)
  • Run-length encoding for contiguous changes
  • Configurable compression thresholds
  • Version tracking and reconstruction
  • Automatic compaction of delta chains

Structs§

ComponentChange
A single component change
DeltaConfig
Configuration for delta encoding
DeltaStats
Statistics for delta storage
DeltaStoreManager
Manager for delta stores across namespaces
NamespaceDeltaStore
Delta store for a namespace
RleChange
Run-length encoded change (contiguous range)
UpsertResult
Result of an upsert operation
VectorDelta
A delta representing changes between vector versions
VersionInfo
Version information for a vector
VersionedVector
A versioned vector with its delta history

Enums§

DeltaEncoding
Encoding type for a delta

Functions§

compute_delta
Compute delta between old and new vectors