Overview
Embeds the query and performs cosine similarity search against indexed code chunks, returning the most semantically relevant snippets with file paths and line numbers. If the codebase is not yet indexed, it will be indexed automatically first.Parameters
Example
Notes
- Queries are limited to 500 characters
- Results include file path, line range, similarity score, and the code snippet
- Auto-indexes on first call if no index exists for the given path
min_scoreis clamped to[0.0, 1.0]. The default of0.35removes noisy low-confidence matches without affecting relevant results- Use
hybrid_searchwhen you also want graph-structural context in the results
