batch_index_directory
Batch index documents from a directory into Elasticsearch, using AI to generate tags and metadata for enhanced searchability.
Instructions
Batch index all documents from a directory into Elasticsearch with AI-enhanced metadata generation and comprehensive file processing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Name of the Elasticsearch index to store the documents | |
| directory_path | Yes | Path to directory containing documents to index | |
| file_pattern | No | File pattern to match (e.g., '*.md', '*.txt', '*') | *.md |
| validate_schema | No | Whether to validate document structure for knowledge base format | |
| recursive | No | Whether to search subdirectories recursively | |
| skip_existing | No | Skip files that already exist in index (check by filename) | |
| max_file_size | No | Maximum file size in bytes to process | |
| use_ai_enhancement | No | Use AI to generate intelligent tags and key points for each document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |