Skip to content

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.

# Index once
result = 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 Markdown

Full tutorial coming soon.

🎉

Flair Earned!

Badge Name

🎖️

You earned your first flair!

What should we call you?