Verify
Check file integrity without modification.Basic Usage
Options
| Option | Description |
|---|---|
--deep | Run thorough verification |
--json | Output as JSON |
Examples
Exit Codes
0- All checks passed- Non-zero - One or more checks failed
Doctor
Diagnose and repair issues with memory files.Basic Usage
Options
| Option | Description |
|---|---|
--plan-only | Preview repairs without applying |
--rebuild-time-index | Rebuild the time index |
--rebuild-lex-index | Rebuild the lexical index |
--rebuild-vec-index | Rebuild the vector index |
--vacuum | Compact and reclaim deleted space |
--json | Output as JSON |
Examples
Severity Levels
| Level | Description |
|---|---|
INFO | Informational, no action needed |
WARN | Potential issue, repair recommended |
ERROR | Problem found, repair required |
Verify Single File
Ensure no auxiliary files exist alongside your memory file.Basic Usage
.mv2 file with no leftover sidecars:
- No
.walfiles - No
.shmfiles - No
.lockfiles - No
-walfiles - No hidden siblings
Example
Common Maintenance Tasks
After Crashes
If your application crashed while writing:Reclaiming Space
After deleting many frames:Rebuilding Indices
If search isn’t working correctly:Cleaning Up Old Files
Remove leftover files from older versions:Environment Variables
| Variable | Description | Default |
|---|---|---|
MEMVID_MODELS_DIR | Model cache directory | ~/.memvid/models |
MEMVID_CACHE_DIR | General cache directory | ~/.cache/memvid |
MEMVID_OFFLINE | Skip model downloads | false |
MEMVID_PARALLEL_SEGMENTS | Control parallel ingestion | Auto |
Setting Environment Variables
Debug Commands
Version
Check CLI version:Debug Segment
Inspect internal vector segment data (advanced):Verbose Output
Enable debug logging:Troubleshooting
Time Index Corruption
Symptom:Lexical Index Issues
Symptom:- Search returns no results
has_lex_index: falsein stats
Vector Index Issues
Symptom:- Semantic search not working
has_vec_index: falsein stats
Capacity Issues
Symptom:Lock Issues
Symptom:Best Practices
Regular Maintenance
- Verify periodically: Run
memvid verify --deepweekly or after major ingestion - Vacuum after deletions: Run
--vacuumafter deleting significant content - Monitor capacity: Check
memvid statsbefore large ingestions
Before Sharing Files
- Verify integrity:
memvid verify knowledge.mv2 --deep - Check single-file:
memvid verify-single-file knowledge.mv2 - Review stats:
memvid stats knowledge.mv2
After System Updates
- Verify existing files still work
- Rebuild indices if search behaves differently
- Check for any deprecated features