Documentation
¶
Overview ¶
Command distributed_index demonstrates the v0.2 distributed write and distributed index-build workflow:
- A coordinator seeds the dataset schema with a small base write.
- Two "workers" each write disjoint data as uncommitted fragments with WriteFragments, returning opaque Transactions.
- A driver commits both transactions in one batch (CommitBuilder. ExecuteBatch merges the Append transactions into a single new version).
- Each worker builds a per-fragment IVF index segment pinned to shared centroids (CreateIndexUncommitted with WithFragments(...)). The driver merges the segments (MergeIndexSegments) and commits one logical index (CommitIndexSegments).
- A vector search runs against the committed distributed index.
In production the workers run on separate machines/processes. The Transaction and IndexMetadata objects are shipped to the driver as bytes (see their Bytes() accessors).
Usage: go run ./examples/distributed_index
Click to show internal directories.
Click to hide internal directories.