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Β§
- Source
Stats π - 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.