upsert_document
Intelligently upload documents to a knowledge graph: creates new files, skips identical ones, and replaces modified content to keep data current.
Instructions
Intelligently upload a document: if it doesn't exist, creates it; if it exists and is identical (same content length), skips upload; if it exists but was modified, deletes the old version and re-uploads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the document file to upsert |