Markdown source

mdvdb info

Show statistics for the whole collection, a folder, or a configured Shard. The command compares Markdown files on disk with the current index and estimates the work required to reindex the selected scope.

Usage

mdvdb info [OPTIONS] [PATH]

Arguments and options

NameDefaultDescription
[PATH].Relative folder to inspect
--shard <ID>Inspect the folder configured for a named Shard; conflicts with PATH

The command also accepts all global options, including --json and --root.

Examples

# Whole collection
mdvdb info

# One folder
mdvdb info docs

# One named Shard
mdvdb info --shard research

# Machine-readable output
mdvdb info docs --json

Reported values

FieldDescription
file_countMarkdown files discovered on disk in the scope
indexed_file_countIndexed files in the scope
chunk_countIndexed chunks in the scope
vector_countWhole collection: measured vector count; scoped view: chunk plus edge vectors attributed to the scope
edge_countEdge vectors whose source file is in scope
reindex_chunksChunks a full reindex of the scope would produce
reindex_estimated_tokensEstimated embedding input tokens
reindex_estimated_api_callsEstimated provider calls using the configured batch size
syncCounts of new, changed, unchanged, and deleted files
index_file_sizeSize of the complete index file, even for a scoped report
embeddingProvider, model, and dimensions recorded by the index
last_updatedUnix timestamp of the last index save

JSON output

{
  "scope": "docs/",
  "is_whole_vault": false,
  "file_count": 42,
  "indexed_file_count": 41,
  "chunk_count": 184,
  "vector_count": 197,
  "edge_count": 13,
  "reindex_chunks": 191,
  "reindex_estimated_tokens": 68320,
  "reindex_estimated_api_calls": 2,
  "index_file_size": 12345678,
  "embedding": {
    "provider": "OpenAI",
    "model": "text-embedding-3-small",
    "dimensions": 1536
  },
  "sync": {
    "new": 1,
    "changed": 1,
    "unchanged": 40,
    "deleted": 0
  },
  "last_updated": 1770000000
}

scope is "." and is_whole_vault is true for an unscoped call.

Notes

  • info is read-only: it does not ingest files or modify the index.
  • Reindex counts are estimates based on the current files and chunking configuration.
  • A Shard is a named folder scope over the shared collection index, not a separate index.