RAGrep

Dead-simple local semantic recall for code and text files. RAGrep stores everything in a single SQLite database, runs mxbai-embed-large embeddings in process, and keeps indexing and retrieval on your machine.

Key Features

Quick Start

RAGrep requires Python 3.9+. Install it directly from PyPI, then run a query against the current directory.

pip install ragrep

# First recall auto-indexes the project and downloads the embedding model on demand
ragrep "authentication middleware"

Override model storage with RAGREP_MODEL_DIR or --model-dir. GPU usage is optional and depends on your local PyTorch build.

CLI Essentials

# Recall relevant chunks (default command; auto-indexes when files changed)
ragrep "authentication middleware"

# Explicit recall with a higher limit
ragrep recall "authentication middleware" --limit 5

# Build or refresh the index manually
ragrep index .

# Inspect index statistics
ragrep stats
ragrep --stats

# Check GPU/device support
ragrep --check-gpu

Useful flags include --path, --db-path, --model-dir, --device, --json, --no-auto-index, and --force for a full rebuild.

Project Highlights

Stay in the Loop

Track releases, file issues, and follow the implementation details: