Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
RAG-Anything is a comprehensive retrieval-augmented generation (RAG) framework developed by HKUDS Lab that eliminates the fragmentation of modern RAG pipelines. Where most RAG systems only handle plain text, RAG-Anything natively processes diverse content modalities — PDFs, Office documents, images, tables, mathematical equations, and charts — all within a unified architecture. With over 16,000 GitHub stars, it has quickly become one of the most-watched RAG projects in the AI open-source community.
RAG-Anything excels in enterprise and research scenarios where documents are inherently heterogeneous: financial reports mixing tables and narrative text, academic papers with equations and figures, technical documentation with diagrams, and legal filings with mixed layouts. It is particularly valuable for organizations building internal knowledge bases where document uniformity cannot be assumed.
The framework is built in Python and integrates with popular vector stores and LLM backends. The knowledge graph layer adds a semantic layer above raw embeddings, enabling multi-hop reasoning. Processing pipelines are modular, allowing organizations to customize extraction for specific document types. The codebase has 1,970+ forks, indicating broad adoption and active derivative work.
# Install with all optional dependencies
pip install raganything[all]
# LibreOffice required for Office document processing
# sudo apt install libreoffice
# Basic usage
from raganything import RAGAnything
rag = RAGAnything()
rag.ingest("document.pdf")
result = rag.query("What are the key findings?")