grepai-ollama-setup

Install and configure Ollama as the local embedding provider for GrepAI code search.

Updated May 12, 2026
One-click install
npx skills add https://github.com/eduardtomasek/codex-dev-stack --skill grepai-ollama-setup-eduardtomasek
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: grepai-ollama-setup
Source: https://github.com/eduardtomasek/codex-dev-stack/tree/main/skills/.agents/grepai-ollama-setup
Command: npx skills add https://github.com/eduardtomasek/codex-dev-stack --skill grepai-ollama-setup-eduardtomasek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up private, local embedding generation for GrepAI requires installing Ollama, choosing the right embedding model, and wiring the correct configuration, which involves platform-specific steps and common pitfalls like connection failures and missing models. ## Core Features & Use Cases - Cross-platform Ollama installation: Step-by-step install instructions for macOS (Homebrew or DMG), Linux (one-line installer), and Windows. - Embedding model selection: Guidance on downloading and comparing models such as nomic-embed-text, bge-m3, and mxbai-embed-large with dimension and size trade-offs. - Verification and troubleshooting: Commands to test the Ollama API, generate a sample embedding, and resolve issues like connection refused, missing models, and out-of-memory errors. - Use Case: You want semantic code search with GrepAI without sending code to a cloud API. Follow this Skill to install Ollama, pull nomic-embed-text, and point GrepAI's config at the local endpoint. ## Quick Start Set up Ollama with the nomic-embed-text embedding model and configure GrepAI to use local embeddings.

Frequently Asked Questions about grepai-ollama-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Ollama for GrepAI local embeddings?▼

Install Ollama for your platform, start it with ollama serve, then pull an embedding model with ollama pull nomic-embed-text. GrepAI's default configuration already points to the Ollama endpoint at localhost:11434, so no config changes are needed.

Which Ollama embedding model should I use for code search?▼

nomic-embed-text is the recommended default with 768 dimensions and a 274 MB download, offering a good balance for code search. Use bge-m3 or mxbai-embed-large for larger codebases or higher accuracy, and nomic-embed-text-v2-moe for multilingual code.

Does Ollama work offline for private code search?▼

Yes, once Ollama and the embedding model are downloaded, embedding generation runs entirely on your machine. Your code never leaves your device, and no internet connection or API key is required during search indexing.

Why does GrepAI get connection refused from Ollama?▼

Connection refused on localhost:11434 means the Ollama server is not running. Start it with ollama serve in the foreground, or run it as a background service with nohup or systemd, then verify with curl http://localhost:11434/api/tags.

How much RAM does Ollama need for embedding models?▼

Memory usage depends on the model: nomic-embed-text uses about 500 MB of RAM, mxbai-embed-large about 1 GB, and bge-m3 about 1.5 GB. If you hit out-of-memory errors, switch to a smaller model or free up system memory.