Skip to main content
Memvid uses local models for semantic search (embeddings), reranking, visual search (CLIP), Logic‑Mesh entity extraction (NER), and local enrichment workflows. Models are cached under MEMVID_MODELS_DIR (default ~/.memvid/models). Some models are installed explicitly via memvid models install, while embedding/reranker models are auto-downloaded on first use (unless offline).

Quick Start


Model Types


Embedding Models (Text Vectors)

Select the default embedding model with the global -m/--embedding-model flag. It can appear before or after the subcommand:

Common choices

External embedding APIs

ask/find auto-detect the correct embedding runtime from the .mv2 when vectors are present. Use --query-embedding-model (or global -m) only when you need an explicit override.

Reranking (Hybrid Precision)

memvid ask may use a cross-encoder reranker (auto-downloaded on first use). Disable it in gated/offline environments:

Install a CLIP model:
Use it during ingestion and search:

NER Model (Logic‑Mesh)

Install NER:
Enable Logic‑Mesh during ingestion:

Enrichment LLM Models

These are local GGUF models used by enrichment workflows (not by memvid ask):
For memvid ask, choose a synthesis model with --use-model (e.g. --use-model openai, --use-model gemini-2.0-flash, or --use-model "ollama:qwen2.5:1.5b"). See Local Models with Ollama.

List / Verify / Remove


Offline Mode

Set MEMVID_OFFLINE=1 to prevent downloads. In offline mode:
  • memvid models install … fails (it can’t download).
  • Embedding/reranker auto-download is blocked; run a semantic command once while online to populate caches.

Environment Variables