
RAG-Anything
A Python framework for question answering over documents that mix text, images, tables and equations.
- Stars
- 24.4k
- Forks
- 2.9k
- Licence
- MIT
- Language
- Python
- Last update
- 4 days ago
- Type
- Library
What it is
RAG-Anything is a Python framework that lets you ask questions about documents containing text, images, tables, and mathematical equations. It is built on the LightRAG project and aims to handle these content types in one pipeline instead of requiring separate tools. The README describes parsing documents, analyzing their content, building a knowledge graph, and then querying the result.
- Ingest a PDF with charts and tables and query it in natural language
- Insert pre-parsed content lists from an external source and query them without re-parsing
- Ask questions that combine visual content from figures with surrounding text
- Build a knowledge graph of entities and relationships extracted from mixed-content documents
Great for
- Developers building question-answering systems over PDFs or Office documents with figures and tables
- Researchers working with academic papers that contain equations and diagrams
- Teams with technical or financial reports where information is spread across mixed content
- Developers who already use or want to use LightRAG
Not ideal for
- People who only need plain text search, since the multimodal pipeline adds complexity the README does not justify for simple text
- Non-developers looking for a ready-made app, because the README presents it as a Python framework to integrate
- Users needing a fully documented production deployment, since the README excerpt does not cover that
How to get it
- 1
Install with a package manager
You'll need: Python 3.10
Install from PyPI
pip install raganything - 2
Run it
- Install the package with pip
- Prepare a document such as a PDF containing text and images
- Follow the README quick start to parse and index the document
- Ask a question about the document and review the answer
- 3
Get the most out of it
- Use the context configuration module described in the docs for richer multimodal processing
- Try the VLM-Enhanced Query mode when documents include images
- Use direct content list insertion if you already have parsed content from another tool
- Check the LightRAG integration noted in the README for related functionality
Downloads
Strengths
- Covers text, images, tables, and equations in one framework rather than several separate tools
- Builds on the established LightRAG project and is installable from PyPI as raganything
- Offers a choice between MinerU-based parsing and direct content list insertion
Trade-offs
- The README excerpt is promotional in places and gives limited detail on configuration and limits
- Parsing relies on MinerU-based workflows, which adds a dependency to understand
- Multimodal analysis may depend on vision-capable models, which the excerpt does not fully specify
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| RAG-Anything (this) | 24.4k | Library | intermediate | 4 days ago | Developers building question-answering systems over PDFs or Office documents with figures and tables |
| LightRAG | 40.5k | Library | intermediate | 8 days ago | Developers building question-answering over their own document collections |
| llama_index | 52.8k | Library | intermediate | 11 days ago | Python developers building retrieval-augmented generation (RAG) apps over private documents |
| PageIndex | 40k | Library | intermediate | 8 days ago | Developers building question-answering over long PDFs such as annual reports or manuals |
| LEANN | 13.8k | Library | intermediate | 4 days ago | Developers building a private RAG prototype on a personal machine |
| FlagEmbedding | 12.3k | Library | intermediate | 10 days ago | Developers building semantic search over their own documents |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.