Search effectively¶
Start with the default search, then switch modes only when the query needs it.
Start with the default mode¶
The default mode combines keyword and semantic retrieval without reranking. It is the right first pass for most searches.
Use exact matching for identifiers¶
Use keyword search when exact text matters:
Good fits include compiler errors, function names, config keys, file names, and CLI flags.
Use semantic search for concepts¶
Use semantic search when the query is a paraphrase or a natural-language description:
Semantic search depends on embeddings, so newly edited files may lag until semantic indexing has refreshed.
Add reranking when ordering matters¶
If the default search finds plausible results but the order is weak, add reranking:
Reranking improves ordering but adds latency.
Use deep search as a second pass¶
Use deep search when the first pass misses useful material:
Deep search expands the query and runs a broader retrieval path. It is slower than the default mode.
Diagnose search behavior¶
Use debug output when you need to inspect the retrieval pipeline:
Next steps¶
- Learn the modes in Search modes.
- See exact flags in Search reference.
- If changed files are missing from search, see Keep indexes fresh.