Skip to main content
Glama

batch_index_directory

Index all documents from a directory into Elasticsearch with AI-enhanced metadata, file processing, and options for recursive search, validation, and skipping existing files.

Instructions

Batch index all documents from a directory into Elasticsearch with AI-enhanced metadata generation and comprehensive file processing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directory_pathYesPath to directory containing documents to index
file_patternNoFile pattern to match (e.g., '*.md', '*.txt', '*')*.md
indexYesName of the Elasticsearch index to store the documents
max_file_sizeNoMaximum file size in bytes to process
recursiveNoWhether to search subdirectories recursively
skip_existingNoSkip files that already exist in index (check by filename)
use_ai_enhancementNoUse AI to generate intelligent tags and key points for each document
validate_schemaNoWhether to validate document structure for knowledge base format

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itshare4u/AgentKnowledgeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server