Open-source RAG frameworks: best options compared (2026)
Our pick
Start with Haystack if you want to build a RAG app in Python from modular parts. It installs with pip install haystack-ai, you design pipelines with explicit control over retrieval, routing, memory and generation, and it is Apache-2.0 licensed. The table shows its last commit and latest release, and how the other tools compare.
Best for
- A RAG app with a ready-made web interface
Cinnamon/kotaemonA RAG interface for chatting with your documents, with multi-user login, private and public collections, and a hybrid full-text and vector retriever with re-ranking. It works with API providers and local models through Ollama and llama-cpp-python.
- A RAG engine you deploy as a service
infiniflow/ragflowA RAG engine that combines retrieval with agent features. It deploys with Docker, and its recommended starting setup is a multi-core machine with plenty of RAM and disk space.
- Graph-based retrieval
HKUDS/LightRAGUses graph-structured indexing to capture links between entities, with a dual-level retrieval mode for detailed facts and broad concepts. It is MIT licensed.
- Searching and reasoning over private text with a knowledge graph
microsoft/graphragA data pipeline that uses LLMs to extract structured data from unstructured text. It is a Microsoft research project, now largely in maintenance mode with bug fixes only.
- Search, RAG and workflows in one Python package
neuml/txtaiBuilt around an embeddings database that combines vector indexes, graph networks and relational databases, with pipelines and workflows on top.
- A general toolkit for agents and LLM apps
langchain-ai/langchainA framework for building agents and LLM-powered apps from interoperable components and third-party integrations. Install with uv add langchain.
The repos compared
Checked on Nov 27, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| deepset-ai / haystack A Python framework for building RAG, search and agent apps from modular pipelines. | 27,149 GitHub (opens in new tab) | Active Dec 1, 2026 | v3.5.0, Nov 10, 2026 | Apache-2.0 | |
| run-llama / llama_index An open-source framework for building agentic and RAG applications. | 53,098 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.14.26, Nov 13, 2026 | MIT | |
| langchain-ai / langchain A framework for building agents and LLM-powered apps from interoperable components. | 150,260 GitHub (opens in new tab) | Active Dec 1, 2026 | langchain-core==1.8.4, Nov 19, 2026 | MIT | |
| infiniflow / ragflow A RAG engine that combines retrieval with agent features. | 95,026 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.0.0, Nov 6, 2026 | Apache-2.0 | Recommended starting configuration: 4 CPU cores, 16 GB RAM, and 50 GB of available disk⦠|
| HKUDS / LightRAG A retrieval-augmented generation framework that indexes documents as a graph. | 40,982 GitHub (opens in new tab) | Active Dec 1, 2026 | v1.5.8, Nov 23, 2026 | MIT | |
| microsoft / graphrag A modular graph-based RAG system and data pipeline for unstructured text. | 36,804 GitHub (opens in new tab) | Active Nov 30, 2026 | v3.3.0, Oct 8, 2026 | MIT | |
| neuml / txtai A framework for semantic search, LLM orchestration and language model workflows. | 13,762 GitHub (opens in new tab) | Active Dec 2, 2026 | v9.15.0, Nov 23, 2026 | Apache-2.0 | |
| Cinnamon / kotaemon A RAG web interface for chatting with your documents. | 25,949 GitHub (opens in new tab) | Inactive May 30, 2026 | v0.12.0, May 31, 2026 | Apache-2.0 | |
| OpenBMB / UltraRAG A low-code framework for building RAG pipelines on MCP. | 5,762 GitHub (opens in new tab) | Active Nov 7, 2026 | v0.3.0.3, Sep 15, 2026 | Apache-2.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
deepset-ai/haystack
pip install haystack-ailangchain-ai/langchain
uv add langchainQuestions
What is a RAG framework?
A library or engine that handles the steps of retrieval-augmented generation: loading documents, indexing them, finding the right passages and passing them to an LLM. Haystack, for example, builds pipelines with control over retrieval, routing, memory and generation.
Which RAG framework should I use for a Python app?
Haystack (pip install haystack-ai), LlamaIndex, LangChain and txtai are all Python frameworks. Haystack and txtai focus on pipelines and search, and LangChain is a wider toolkit for agents and LLM apps.
What is the best open-source graph RAG framework?
LightRAG and GraphRAG both build a graph from your documents. LightRAG uses graph-structured indexing with dual-level retrieval, while GraphRAG is a Microsoft research data pipeline that is now largely in maintenance mode.
Can I get RAG without writing code?
Partly. kotaemon is a ready-made interface for chatting with your documents, and UltraRAG is a low-code framework for building RAG pipelines. RAGFlow is an engine you deploy rather than a library you import.
Do I need a vector database with a RAG framework?
Usually the framework connects to one. See the open-source vector databases guide for options. txtai includes its own embeddings database.
