Skip to main content

Module vec

Module vec 

Source
Expand description

Handler for the vec CLI subcommand family.

Provides three maintenance operations for the vec_memories virtual table that backs the embedding KNN search:

  • orphan-list: lists vec_memories rows whose memory_id no longer references a live (non-soft-deleted) memory.
  • purge-orphan: deletes those orphan rows in a single transaction.
  • stats: surfaces total rows, orphan count, and coverage percentage.

G39 (v1.0.69): before v1.0.69, the only way to detect a vec-orphan was health --json which reported vec_memories_orphaned > 0 with no remediation path. This module closes the loop.

Structs§

VecArgs
Arguments for the vec subcommand family.
VecOrphanListArgs
Arguments for vec orphan-list.
VecOrphanListInner
Arguments for vec purge-orphan.
VecPurgeOrphanArgs
Arguments for vec purge-orphan.
VecStatsArgs
Arguments for vec stats.

Enums§

VecSubcommand
Subcommands nested under vec.

Functions§

run
Dispatch entry point called from main.