Skip to content
The Daily Repo

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

The repos compared

Checked on Nov 27, 2026: the oldest day any repo in the table was last read from GitHub.

Open-source RAG frameworks: best options compared (2026): repos compared
RepoStarsLast commitLatest releaseLicenceNeeds
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, 2026v3.5.0, Nov 10, 2026Apache-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, 2026v0.14.26, Nov 13, 2026MIT
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, 2026langchain-core==1.8.4, Nov 19, 2026MIT
infiniflow / ragflow

A RAG engine that combines retrieval with agent features.

95,026
GitHub (opens in new tab)
Active Dec 2, 2026v1.0.0, Nov 6, 2026Apache-2.0Recommended 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, 2026v1.5.8, Nov 23, 2026MIT
microsoft / graphrag

A modular graph-based RAG system and data pipeline for unstructured text.

36,804
GitHub (opens in new tab)
Active Nov 30, 2026v3.3.0, Oct 8, 2026MIT
neuml / txtai

A framework for semantic search, LLM orchestration and language model workflows.

13,762
GitHub (opens in new tab)
Active Dec 2, 2026v9.15.0, Nov 23, 2026Apache-2.0
Cinnamon / kotaemon

A RAG web interface for chatting with your documents.

25,949
GitHub (opens in new tab)
Inactive May 30, 2026v0.12.0, May 31, 2026Apache-2.0
OpenBMB / UltraRAG

A low-code framework for building RAG pipelines on MCP.

5,762
GitHub (opens in new tab)
Active Nov 7, 2026v0.3.0.3, Sep 15, 2026Apache-2.0

Install commands

Copied from each repo. Read its setup steps before you run anything.

deepset-ai/haystack

pip install haystack-ai

langchain-ai/langchain

uv add langchain

Questions

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.

More

Type to search.

Try