repair_vocabulary
Audit and fix sparse vocabulary mismatches in codesearch by comparing Qdrant collections with registered contributions, reconstructing missing vectors, and removing stale registrations.
Instructions
Audit or repair codesearch's global sparse vocabulary.
Qdrant file and chunk points are authoritative. The audit compares their
counts with each collection's registered vocabulary contribution and finds
registrations whose Qdrant collection no longer exists. With repair
enabled, mismatched contributions are reconstructed from stored sparse
vectors and stale registrations are removed. Vocabulary reconstruction does
not rewrite Qdrant; recovery of a pending interrupted operation may finish
its recorded deletion or clear an ambiguously partial path before rebuilding
the contribution.
full re-registers every live collection and also requires repair;
use it to correct token-frequency drift that happens to preserve the count.
Collections are processed safely one at a time; if indexing changes the
collection set concurrently, run the audit again for a point-in-time report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| repair | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |