index_codebase
Indexes a Python codebase for semantic search by extracting functions, classes, and methods, generating embeddings, and storing them. Supports incremental updates and forced full re-indexing.
Instructions
Index a codebase for semantic search.
Scans Python files, extracts functions/classes/methods, generates embeddings, and stores them for fast semantic search.
Use force=True to re-index everything even if files haven't changed. Otherwise, only new and modified files are indexed (incremental).
Args: project_path: Absolute path to the project root directory. force: If True, re-index all files regardless of changes.
Returns: Statistics about the indexing operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |