index_filebase
Index a directory tree or single file for semantic search, covering code, documents, and PDFs with a unified pipeline.
Instructions
Index a filebase (directory tree or single file) for semantic search.
This is the unified indexing function that handles all file types (code, documents, PDFs) with a single consistent pipeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | Comma-separated tags for organizing indexed content (required) | |
| exclude | No | Optional list of fnmatch patterns to exclude (e.g., ["*_test.py"]) | |
| include | No | Optional list of fnmatch patterns to include (e.g., ["*.py", "*.md"]) | |
| base_path | Yes | Root directory path or individual file to index | |
| exclude_dirs | No | Optional list of directory names to exclude (e.g., ["node_modules", ".git"]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||