- Privacy-sensitive data - Keep everything on your machine
- Offline usage - No internet connection required after setup
- Cost savings - No API fees for inference
- Low latency - No network round-trips
Quick Setup
1. Install Ollama
- macOS
- Linux
- Windows
2. Start Ollama Server
3. Pull a Model
4. Use with Memvid
Recommended Models
Pull Commands
CLI Usage
Basic Q&A
Advanced Options
Python SDK Usage
With Different Models
Node.js SDK Usage
Model Selection Guide
By Use Case
By Hardware
Ollama Management
List Downloaded Models
Remove a Model
Update a Model
Check Ollama Status
Run as Background Service
- macOS
- Linux (systemd)
Troubleshooting
Ollama Not Running
Model Not Found
Slow Response Times
Solutions:- Use a smaller model:
ollama:qwen2.5:0.5b - Reduce context:
--top-k 5 --snippet-chars 300 - Close other memory-intensive applications
- Ensure you have enough RAM for the model
Out of Memory
Solutions:- Use a smaller model
- Close other applications
- Increase swap space (not recommended for performance)
Comparison: Local vs Cloud Models
When to Use Local Models
- Sensitive/confidential data
- Offline environments
- Cost-sensitive applications
- Privacy requirements
When to Use Cloud Models
- Best possible answer quality
- Limited local compute
- Quick prototyping
- Complex reasoning tasks
Next Steps
Search & Ask CLI
Full CLI reference for search and Q&A commands
Python SDK
Use local models in Python applications