Module stats

Module stats 

Source
Expand description

Database statistics and health overview.

Provides a quick summary of what’s indexed: document counts, chunk counts, embedding coverage, and per-source breakdowns. Used by ctx stats to give confidence that syncs and embeddings are working as expected.

StructsΒ§

SourceStats πŸ”’
Per-source breakdown of document and chunk counts.

FunctionsΒ§

format_bytes πŸ”’
Format a byte count as a human-readable string.
format_ts_iso πŸ”’
format_ts_relative πŸ”’
Format a Unix timestamp as a relative time string (e.g. β€œ3 hours ago”).
run_stats
Run the stats command: query the database and print a summary.