Search Modes
Memvid supports three search modes:Basic Search
The find Command
Options
-m/--embedding-model is a global flag that selects the default embedding model (not the search mode). Use --mode for lex/sem/auto.Time-Travel Options
Search Mode Examples
Lexical Search
Best for exact matches and technical terms:Semantic Search
Best for natural language and conceptual queries:Semantic (
sem) and hybrid (auto) search require query embeddings. Memvid auto-detects the correct embedding runtime from the .mv2 when vectors are present. Use --query-embedding-model (or global -m/--embedding-model) only when you need to override.Hybrid Search (Recommended)
Combines both approaches for best results:Query Syntax
Multi-Word Queries
By default, multi-word queries use OR logic for better recall:Boolean Operators
Use explicit operators for precise control:Phrase Search
Use quotes for exact phrase matching:Advanced Search
Filtering Results
Filter by scope or specific URI:Limiting Results
JSON Output
For programmatic use:Pagination
For large result sets:Time-Travel Queries
View search results at a specific point in time:AI-Powered Q&A
Theask command retrieves relevant documents and synthesizes an answer using an LLM.
Basic Usage
Model Options
For NVIDIA models, you can also set
NVIDIA_LLM_MODEL and use --use-model nvidia.For local models, see Local Models with Ollama for setup instructions.
Options
Filtering Options
Examples
Multi-File Search
Search across multiple memory files:JSON Output
Grounding & Hallucination Detection
When using--json, the response includes a grounding object that measures how well the answer is supported by the retrieved context:
Ground Truth Corrections
Thecorrect command stores authoritative corrections that take priority in future retrievals. Use this to fix hallucinations or add verified facts.
Synopsis
Options
Examples
Verification
After storing a correction, verify it’s retrievable:Corrections are stored with a
[Correction] label and receive boosted retrieval scores, ensuring they appear prominently in search results.Vector Search
Thevec-search command performs direct vector similarity search with pre-computed embeddings.
Synopsis
Options
Examples
Temporal Queries
Thewhen command resolves temporal phrases and lists matching frames.
Synopsis
Options
Examples
Audit Reports
Theaudit command generates audit reports with full source provenance.
Synopsis
Options
Examples
Response (Markdown)
Real-World Examples
Documentation Search
Codebase Search
Research Search
Troubleshooting
No Results Found
Solutions:- Try different search mode:
--mode semor--mode lex - Broaden your query terms
- Check that documents have been ingested:
memvid stats knowledge.mv2 - Verify lexical index exists:
memvid doctor knowledge.mv2 --rebuild-lex-index
Low Relevance Scores
Solutions:- Use semantic search for natural language queries
- Use lexical search for exact technical terms
- Add more context to your query
- Increase
--top-kto see more results
LLM Errors
See Local Models with Ollama for detailed setup instructions.
Next Steps
Timeline & View
Explore documents by time and view frame details
Maintenance
Verify integrity and manage your files