Best Open Source RAG Frameworks

Ranked by GitHub stars and 252 days of tracked growth. The top open source RAG frameworks below are updated daily — pick two to see a full side-by-side comparison.

1
dify
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
⭐ 149.6k +26.2%
2
open-webui
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
⭐ 146.2k +27.3%
3
langchain
The agent engineering platform.
⭐ 142.2k +19.1%
4
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
⭐ 92.8k
5
claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
⭐ 88.1k +55.9%
6
ragflow
RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
⭐ 85.6k +26.9%
7
Prompt-Engineering-Guide
🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.
⭐ 76.8k +15.9%
8
hello-agents
📚 《从零开始构建智能体》——从零开始的智能体原理与实践教程
⭐ 67.7k +43.2%
9
anything-llm
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience
⭐ 63.6k +25.0%
10
mem0
Universal memory layer for AI Agents
⭐ 61.4k +42.9%
11
headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
⭐ 60.9k +2.8%
12
llm-app
Ready-to-run cloud templates for RAG, AI pipelines, and enterprise search with live data. 🐳Docker-friendly.⚡Always in sync with Sharepoint, Google Drive, S3, Kafka, PostgreSQL, real-time data APIs, and more.
⭐ 59.0k +26.6%

⚖️ Compare RAG frameworks head-to-head

Real adoption data, side by side.

dify vs open-webui dify vs langchain open-webui vs langchain dify vs graphify open-webui vs graphify dify vs claude-mem dify vs ragflow langchain vs graphify