grepai-search-basics
Semantic code search by meaning rather than exact text strings.
- Searches code by intent and concept similarity using embeddings, returning ranked results with relevance scores (0.0–1.0)
- Requires GrepAI initialization, an active index created via
grepai watch, and a running embedding provider like Ollama - Supports natural language queries describing behavior or intent; 3–7 word phrases work best, with results limited via
--limitflag - Interprets scores: 0.90+ excellent match, 0.80–0.89 good match, 0.70–0.79 related, below 0.60 weak match
GrepAI Search Basics
This skill covers the fundamentals of semantic code search with GrepAI.
When to Use This Skill
- Learning GrepAI search
- Performing basic code searches
- Understanding semantic vs. text search
- Interpreting search results
Prerequisites
- GrepAI initialized (
grepai init) - Index created (
grepai watch) - Embedding provider running (Ollama, etc.)
What is Semantic Search?
More from yoanbernabeu/grepai-skills
grepai-ollama-setup
Install and configure Ollama for local embeddings with GrepAI. Use this skill when setting up private, local embedding generation.
541grepai-search-advanced
Advanced search options in GrepAI. Use this skill for JSON output, compact mode, and AI agent integration.
540grepai-trace-graph
Build complete call graphs with GrepAI trace. Use this skill for recursive dependency analysis.
524grepai-search-tips
Tips and best practices for effective GrepAI searches. Use this skill to improve search result quality.
524grepai-trace-callees
Find function callees with GrepAI trace. Use this skill to discover what functions a specific function calls.
507grepai-trace-callers
Find function callers with GrepAI trace. Use this skill to discover what code calls a specific function.
507