Skip to main content
Commands for maintaining the health and integrity of your memory files.

Verify

Check file integrity without modification.

Basic Usage

Options

Examples

Output:
JSON Output:

Exit Codes

  • 0 - All checks passed
  • Non-zero - One or more checks failed

Doctor

Diagnose and repair issues with memory files.

Basic Usage

Options

Examples

Output:

Severity Levels


Verify Single File

Ensure no auxiliary files exist alongside your memory file.

Basic Usage

This checks that the directory contains only the .mv2 file with no leftover sidecars:
  • No .wal files
  • No .shm files
  • No .lock files
  • No -wal files
  • No hidden siblings

Example

If sidecars are found:

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

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:
Solution:

Lexical Index Issues

Symptom:
  • Search returns no results
  • has_lex_index: false in stats
Solution:

Vector Index Issues

Symptom:
  • Semantic search not working
  • has_vec_index: false in stats
Solution:

Capacity Issues

Symptom:
Solutions:

Lock Issues

Symptom:
Solutions:

Best Practices

Regular Maintenance

  1. Verify periodically: Run memvid verify --deep weekly or after major ingestion
  2. Vacuum after deletions: Run --vacuum after deleting significant content
  3. Monitor capacity: Check memvid stats before large ingestions

Before Sharing Files

  1. Verify integrity: memvid verify knowledge.mv2 --deep
  2. Check single-file: memvid verify-single-file knowledge.mv2
  3. Review stats: memvid stats knowledge.mv2

After System Updates

  1. Verify existing files still work
  2. Rebuild indices if search behaves differently
  3. Check for any deprecated features

Next Steps

Create & Ingest

Add more content to your memories

Search & Ask

Query your memories