<< Home | Tech
Reduced token usage from tens of thousands to raw count
| Area | Tech |
| AI used | LiteDoc |
| Source | r/PromptEngineering |
| Posted | 2026-06-05 |
The move
Convert PDFs to clean Markdown locally in your browser before uploading them to an LLM.Steps
- Navigate to litedoc.xyz in your web browser.
- Upload your PDF file directly into the tool.
- Wait for the tool to extract text and images locally.
- Download the generated .md file and image folder.
- Upload only the clean Markdown text to your LLM.
Prompt for your AI
Analyze the following Markdown content extracted from my document: [Paste the Markdown text generated by LiteDoc]. Based on this content, please [Insert your specific task, e.g., summarize the key findings].
What happened
Uploading raw PDFs to LLMs consumes excessive tokens for vision and rasterization. The creator built LiteDoc, a browser-based tool that extracts text and images locally. This allows users to upload only the necessary text and images, significantly lowering API costs.Watch out
Very large documents may cause browser memory issues if not processed in chunks. Complex layouts might require manual review of the Markdown output for formatting errors.Give it to your agent
Read https://howtheyuse.ai/p/reduced-token-usage-from-tens-of-thousands-to-raw-count.md and help me do this.