Skip to main content

Module inspect

Module inspect 

Source
Expand description

Offline inspection of a skeg data directory.

Walks the on-disk layout produced by skeg-server (or skeg-cli build) and reports what is in it: the VINDEX names per shard, vector counts, graph/vectors file sizes. The server does not need to be running.

The layout this expects mirrors what the server writes:

<data-dir>/shard-<N>/
  vindexes.registry        <- [u32 count] + per entry [u16 name_len][name][u32 dim]
  vindex-<name>/
    graph.vmn
    vectors.bin

Structs§

InspectReport
Full report on a data directory.
ShardReport
One shard’s contribution to the inspect report.
VindexEntry
One VINDEX as recorded in a shard’s registry, with on-disk sizes.

Functions§

inspect
Inspect a data directory. Returns an empty report if the directory contains no shard-* subdirectories.