vector-db-audit)
Systematically audit the Vector Database to identify indexing coverage gaps between the project manifest and document chunks in ChromaDB collections.
Contents
- Critical Constraints
- Capabilities
- Quick start
- Workflow
- Verification
Critical Constraints
- Read-Only Inspection: Audit checks evaluate collections and filesystem manifests without writing or deleting index records.
- Profile Specification: Mandatory
--profileflag to ensure the target collection and manifest are matched accurately. - No Direct SQLite Access: Must execute via
scripts/audit_vector.py; never query SQLite backing tables directly.
Capabilities
- Coverage Analysis: Calculates the percentage of project documentation vectorized in ChromaDB.
- Gap Identification: Detects files included in the manifest but missing from the collection.
- Batch Exporting: Generates CSV lists of missing files for targeted ingestion.
- Dynamic Configuration: Automatically loads collection settings from selected profile.
Quick start
Execute a coverage audit against a specific profile:
python3 scripts/audit_vector.py --profile wiki --report vector_audit.txt --csv missing_vector.csv
Workflow
- Select Profile: Identify target collection profile (e.g.
wiki,codebase). - Execute Audit: Run
audit_vector.pyto compare filesystem manifest against the ChromaDB collection. - Review Gaps: Inspect
vector_audit.txtandmissing_vector.csvfor missing documents. - Coordinate Ingestion: Dispatch missing file paths to
vector-db-ingestfor vectorization.
Verification
Validate report output generation and vector collection connectivity:
python3 scripts/audit_vector.py --profile wiki --check-only