Indexing Large Documents
“It’s not that I’m lazy, it’s that I just don’t care about loading 500 pages at once.”
For documents over 25,000 tokens, the indexing system enables on-demand fetching through MCP resources.
Quick Example
Section titled “Quick Example”# Index onceresult = await index_document("huge-novel.docx")# Returns: {"doc_id": "abc123", "resources": {...}}
# Fetch chapters on demand# chapter://abc123/1 → Chapter 1# chapter://abc123/1.md → Chapter 1 as MarkdownFull tutorial coming soon.