index_document
Index documents into Elasticsearch with duplicate prevention, intelligent ID generation, and schema validation. Use AI similarity checks to ensure accurate indexing while maintaining knowledge base integrity.
Instructions
Index a document into Elasticsearch with smart duplicate prevention and intelligent document ID generation. 💡 RECOMMENDED: Use 'create_document_template' tool first to generate a proper document structure and avoid validation errors.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
check_duplicates | No | Check for existing documents with similar title before indexing | |
doc_id | No | Optional document ID - if not provided, smart ID will be generated | |
document | Yes | Document data to index as JSON object. 💡 RECOMMENDED: Use 'create_document_template' tool first to generate proper document format. | |
force_index | No | Force indexing even if potential duplicates are found. 💡 TIP: Set to True if content is genuinely new and not in knowledge base to avoid multiple tool calls | |
index | Yes | Name of the Elasticsearch index to store the document | |
use_ai_similarity | No | Use AI to analyze content similarity and provide intelligent recommendations | |
validate_schema | No | Whether to validate document structure for knowledge base format |