Skip to main content

Module db

Module db 

Source
Expand description

Vector database implementation with atomic flush semantics.

This module provides the main VectorDb struct that handles:

  • Vector ingestion with validation
  • In-memory delta buffering via WriteCoordinator
  • Atomic flush with ID allocation
  • Snapshot management for consistency

The implementation uses the WriteCoordinator pattern for write path:

  • Validation and ID allocation happen in write()
  • Delta handles dictionary lookup, centroid assignment, and builds RecordOps
  • Flusher applies ops atomically to storage

Structs§

VectorDb
Vector database for storing and querying embedding vectors.

Traits§

VectorDbRead
Trait for querying the vector db