rag_index
Index local documents into a searchable knowledge base for RAG queries. Pass a file or directory path for incremental indexing; unchanged files are skipped and deleted ones pruned.
Instructions
Index local documents into the knowledge base before searching. Pass an absolute directory path for a recursive incremental walk (skips unchanged files by content hash, prunes entries for deleted files) or a single file path. Idempotent and safe to re-run; only changed content is re-embedded. Supported types: md/txt/code files (see README for the full list); dot-directories like .git and .obsidian are skipped automatically. After indexing completes, use rag_search to query. To remove everything instead, use rag_clear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a directory of documents (or a single file) to index. | |
| extensions | No | Extra file extensions to include beyond the defaults |