About Search
Cheetah AI provides powerful search capabilities that help you find code, understand your codebase, and research solutions. Unlike simple text search, the AI understands the meaning of code and can find relevant results even when they don’t contain your exact search terms. Search is fundamental to how the AI operates. When you ask questions or request changes, the AI automatically searches your codebase to gather relevant context. You can also explicitly search to explore your project or find specific code.Codebase Search
Semantic Search
Semantic search finds code by meaning and intent, not just keywords. This is the most powerful way to explore your codebase because it understands what code does, not just what it’s called.session.ts, login.ts, or middleware.ts. The AI understands that these are all related to authentication.
- Exploring an unfamiliar codebase
- Finding code when you don’t know the exact terminology
- Understanding how a feature is implemented across multiple files
- Locating code related to a concept or functionality
Content Search
Content search finds exact text matches in your codebase. Use this when you know the specific text you’re looking for.Regex Search
For complex patterns, you can use regular expressions:Path Search
Find files by their name or location:Web Search
The AI can search the web to find documentation, solutions, and best practices. This is useful for troubleshooting errors, researching libraries, and learning new techniques.- Troubleshooting error messages
- Finding documentation for libraries and frameworks
- Comparing different approaches or libraries
- Learning best practices and patterns
- Researching new technologies
Documentation Lookup
The AI can access official documentation for libraries and frameworks:- Official library documentation
- Framework guides and tutorials
- API references
- Package documentation from npm, PyPI, and other registries
Search Within Files
Find specific content within a single file:Directory Tree
Visualize and understand your project structure:Choosing the Right Search
Different search types are suited for different needs:| Need | Search Type | Example |
|---|---|---|
| Find related code | Semantic search | ”Find authentication logic” |
| Find exact text | Content search | ”Search for ‘API_KEY‘“ |
| Find by pattern | Regex search | ”Find /useState(.*)/“ |
| Find files | Path search | ”Find all .tsx files” |
| Troubleshoot errors | Web search | ”Search for ‘TypeError: Cannot read property‘“ |
| Learn library APIs | Documentation lookup | ”Look up fetch API documentation” |
| Understand structure | Directory tree | ”Show project structure” |

