takashiishida/arxiv-to-prompt
Transform arXiv papers into a single LaTeX source that can be used as a prompt for asking LLMs questions about the paper.
Automatically downloads arXiv source files, identifies the main LaTeX document, and flattens nested `\input`/`\include` commands into a single file—with options to strip comments, appendices, and expand macros to optimize token usage. Provides both CLI and Python API with advanced features like section extraction via hierarchical path notation, figure path extraction, and token counting via OpenAI's tokenizer. Integrates with the `llm` library for piped LLM queries and serves as a foundation for downstream tools like MCP servers and iOS apps.
133 stars and 4,594 monthly downloads. Available on PyPI.
Stars
133
Forks
7
Language
Python
License
MIT
Category
Last pushed
Mar 08, 2026
Monthly downloads
4,594
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/takashiishida/arxiv-to-prompt"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
dottxt-ai/outlines
Structured Outputs
microsoft/promptpex
Test Generation for Prompts
AI-secure/aug-pe
[ICML 2024 Spotlight] Differentially Private Synthetic Data via Foundation Model APIs 2: Text
Spr-Aachen/LLM-PromptMaster
A simple LLM-Powered chatbot software.
equinor/promptly
A prompt collection for testing and evaluation of LLMs.