Best Open-Source RAG Tools on GitHub
softwareTable of Contents
Founder & technical writer at Vocxa. LinkedIn
If you want an internal "chat with our documents" assistant without sending every file to a SaaS vendor, the best open-source RAG tools on GitHub right now are Dify, RAGFlow, Open WebUI, AnythingLLM, Onyx, LibreChat and Langflow. Dify is the most complete all-rounder, RAGFlow handles messy PDFs and scans best, and AnythingLLM is the fastest way for a small team to start. One popular option, Flowise, was archived in August 2026, so we'd skip it for new projects.
Below we compare seven repos on licence, hardware, deployment effort and fit for SMEs and restaurant groups in Saudi Arabia and the GCC. Star counts and versions are as of November 2026.
What is RAG, and why would an SME self-host it?
RAG (retrieval-augmented generation) means the AI looks up the relevant pages in your own documents first, then writes an answer from them, ideally with citations. For a business, that's the difference between a chatbot that guesses and one that quotes your SOP manual.
Typical uses we see in F&B and SME teams:
- Branch staff asking "what's the hold time for grilled chicken?" against the food safety manual
- HR questions answered from the policy handbook in English or Arabic
- Ops managers searching supplier contracts, POS runbooks and audit reports
- Marketing pulling approved brand claims and menu descriptions
Self-hosting matters here because these documents often contain staff and customer data. Under Saudi Arabia's PDPL, sending that to an external AI tool is processing you need to justify. We covered that in our AI tools and PDPL checklist. Running the RAG layer on your own server (and pairing it with a local model or a no-retention API plan) keeps far more of the data under your control.
The 7 best open-source RAG tools at a glance
| Tool | Best for | Licence | GitHub stars (Nov 2026) | Minimum hardware stated |
|---|---|---|---|---|
| Dify | Workflows plus RAG in one platform | Dify Open Source License (Apache 2.0 base, extra conditions) | ~160k | 2 CPU cores, 4 GiB RAM |
| Open WebUI | Private ChatGPT-style UI with document chat | Open WebUI License (branding must stay) | ~159k | Not stated; runs via pip or Docker |
| Langflow | Developers building custom RAG pipelines | MIT | ~156k | Python 3.10 to 3.14 |
| RAGFlow | Complex PDFs, scans, tables, citations | Apache 2.0 | ~94k | 4 CPU, 16 GB RAM, 50 GB disk |
| AnythingLLM | Fastest start for a small team | MIT | ~67k | Desktop app or Docker |
| LibreChat | Multi-model chat for many users with SSO | MIT | ~47k | Docker |
| Onyx | Company-wide search across many apps | MIT (Community Edition) | ~33k | Lite mode under 1 GB, but no indexing |
Which open-source RAG tool should you pick? (the 7 in detail)
1. Dify: the all-in-one platform
Dify's repository describes it as an LLM app platform that combines visual workflows, a RAG pipeline, agents, model management and observability. It ingests PDFs, PowerPoints and other common formats, connects to hundreds of hosted and self-hosted models, and exposes every app as an API.
- Best for: teams that want RAG plus automation (for example, a document assistant that also files a ticket or sends a WhatsApp alert).
- Licence: the Dify Open Source License, built on Apache 2.0 with additional conditions. Read the LICENSE file before you offer it to clients as a hosted service.
- Hardware: the README lists at least 2 CPU cores and 4 GiB RAM, with Docker Compose 2.24 or later.
- Pros: huge community (about 160k stars), visual builder, API for every app, strong model choice.
- Cons: the licence isn't pure Apache; SSO and RBAC sit in the paid Enterprise edition.
2. RAGFlow: best for messy documents
RAGFlow focuses on "deep document understanding": it parses Word, Excel, PowerPoint, images, scanned copies and PDFs, lets you inspect how text was chunked, and shows traceable citations. Version 1.0.0 shipped on 6 November 2026, adding agentic retrieval with adjustable thinking depth.
- Best for: supplier contracts, scanned invoices and audit PDFs where layout and tables matter.
- Licence: Apache 2.0, the cleanest licence on this list for commercial use.
- Hardware: the recommended start is 4 CPU cores, 16 GB RAM and 50 GB of disk. The Docker image doesn't currently support macOS.
- Pros: best citation and chunk visibility here, template-based chunking, sitemap ingestion for websites.
- Cons: heaviest footprint; in the 1.0 open-source build, its DeepDoc layout and OCR run on CPU, so large batches are slow.
If your main headache is scanned paperwork, pair this with the OCR options in our open-source OCR tools for invoices roundup.
3. Open WebUI: a private ChatGPT for your team
Open WebUI is a self-hosted chat interface built to run fully offline. It connects to local models through Ollama or to any OpenAI-compatible API, and its document chat (knowledge bases) covers basic RAG. Install is one pip command or one Docker command, with a CUDA image for GPU servers.
- Best for: giving staff a familiar chat screen backed by your own model and files.
- Licence: the Open WebUI License, which requires you to preserve Open WebUI branding. That's fine internally, but it matters if you planned to white-label it for a client.
- Pros: about 159k stars, very easy install, works offline, large plugin ecosystem.
- Cons: RAG is good rather than specialised; branding clause limits resale.
4. AnythingLLM: the fastest start
AnythingLLM bundles document chat, agents and a vector database (LanceDB by default) so you can be answering questions within minutes. It runs as a desktop app on Mac, Windows and Linux, or as a Docker server with multi-user permissions and an embeddable website chat widget.
- Best for: a five to 30 person team that wants something working this week.
- Licence: MIT.
- Pros: built-in local model engine, supports dozens of LLM providers and vector stores, citations in the chat UI.
- Cons: multi-user, white-labelling and the chat widget are Docker-only. It sends anonymous telemetry by default, which you can switch off with
DISABLE_TELEMETRY(do this before you load real documents).
5. Onyx: search across all your apps
Onyx is closer to an internal search engine. It connects to 50+ applications, keeps document permissions when it indexes them, and answers through a web app, Slack bot, Chrome extension or MCP server. The self-hosted deployment can run air-gapped.
- Best for: larger SMEs whose knowledge lives in Google Drive, Slack, Confluence and similar tools rather than a single folder.
- Licence: Community Edition is MIT; SSO, RBAC, analytics and query history sit in the Enterprise Edition.
- Pros: permission-aware indexing, many connectors, Slack integration.
- Cons: the standard stack (vector index, workers, Redis, MinIO, model servers) is heavier to run. Lite mode needs under 1 GB but can't index documents.
6. LibreChat: multi-model chat with proper auth
LibreChat is a self-hosted chat platform that puts Claude, OpenAI, Gemini, Bedrock, Ollama and others behind one interface. Version 0.8.8 adds an Agent Management API, and it already supports file chat, agents with file search, MCP tools, and multi-user login via OAuth2, LDAP or email, plus an admin panel.
- Best for: organisations that want one approved AI portal with SSO, token-spend controls and an Arabic UI.
- Licence: MIT.
- Pros: strongest user management of the chat UIs here, Arabic among its interface languages, active releases.
- Cons: RAG runs through a separate RAG API service, so it's one more component to deploy and patch.
7. Langflow: build your own pipeline
Langflow is a visual builder for agents and RAG workflows, where each flow can be deployed as an API or an MCP server and any component can be edited in Python. Official packages now require a login by default.
- Best for: developers who want full control over chunking, retrieval and prompts, then call the flow from an app or n8n.
- Licence: MIT.
- Pros: about 156k stars, Python-level customisation, flows become reusable tools.
- Cons: it's a builder, not a finished staff-facing assistant; you'll still need a front end.
A warning about Flowise
Plenty of 2025 guides still recommend Flowise. Its GitHub repository was archived by the owner on 13 August 2026 and is now read-only. Existing installs keep working, but archived code won't get security fixes from the main repo. If you're starting fresh, choose Dify or Langflow instead. If you already run Flowise, plan a migration rather than waiting for a vulnerability to force one.
How to choose: a 6-step checklist
- Map the documents. One shared folder of PDFs points to AnythingLLM or RAGFlow. Knowledge spread across Drive, Slack and email points to Onyx.
- Check document quality. Scanned, table-heavy or bilingual PDFs need RAGFlow-grade parsing. Clean Word files work almost anywhere.
- Decide where the model runs. A local model via Ollama keeps data in-house but needs a GPU for decent speed. An API model is faster to set up, so check its data retention terms first.
- Read the licence. Dify and Open WebUI carry conditions; RAGFlow, AnythingLLM, LibreChat, Langflow and Onyx CE use Apache 2.0 or MIT.
- Plan access control. Who can see which documents? If the answer is "it depends on the department", you need permission-aware indexing or separate workspaces.
- Pilot with 50 real questions. Collect genuine staff questions, run them, and check every citation by hand before rollout.
A worked example (hypothetical)
Picture a restaurant group with 12 branches and around 300 pages of SOPs, HACCP records and HR policy, mostly English with some Arabic. A sensible first build would be AnythingLLM in Docker on a small cloud server, one workspace per department, telemetry off, connected to an API model with a no-retention agreement. If scanned supplier documents later become a priority, RAGFlow can be added as a separate service for that one workspace. That's two tools, each doing what it does best, instead of one platform stretched to cover everything.
Limits and risks to plan for
- RAG doesn't remove hallucinations. It reduces them. Insist on citations and train staff to click them for anything safety-related.
- Arabic quality depends on the model and embeddings, not on the RAG tool. Test Arabic questions specifically; an English-only embedding model will retrieve poorly.
- Stale documents produce confident wrong answers. Assign an owner to re-sync or re-upload whenever an SOP changes.
- Self-hosting means patching. You own updates, backups and access logs. Budget a few hours a month.
- Hardware creep. RAGFlow's 16 GB baseline excludes a local model; adding one usually means a GPU instance.
Our take
For most GCC SMEs, we'd start with AnythingLLM for speed or Dify if you also want workflows, and bring in RAGFlow only when document parsing is the real bottleneck. LibreChat is the pick when IT's priority is one governed AI portal with SSO. Treat star counts as a popularity signal, not a quality score: the Flowise archive shows that even a 55k-star project can stop overnight. Whatever you choose, the hard part isn't installation. It's clean source documents, sensible permissions and a test set of real questions.
If you want help wiring a RAG assistant into your POS, n8n or HR stack, talk to our team.
Sources
- Dify GitHub repository (langgenius/dify)
- RAGFlow GitHub repository (infiniflow/ragflow)
- Open WebUI GitHub repository (open-webui/open-webui)
- AnythingLLM GitHub repository (Mintplex-Labs/anything-llm)
- Onyx GitHub repository (onyx-dot-app/onyx)
- LibreChat GitHub repository (LibreChat-AI/LibreChat)
- Langflow GitHub repository (langflow-ai/langflow)
- Flowise GitHub repository, archived (FlowiseAI/Flowise)
Frequently Asked Questions
What is the best open-source RAG tool for a small business?
AnythingLLM is the quickest to set up for a small team, since it bundles the vector database, document chat and a desktop app. Dify suits teams that also want automated workflows around the answers.
Can I run a RAG chatbot without sending data to OpenAI?
Yes. Tools like Open WebUI, AnythingLLM and Dify can use local models through Ollama or similar, so documents and prompts stay on your server. Expect to need a GPU for acceptable response times.
Which open-source RAG tool handles scanned PDFs best?
RAGFlow is built for this, with layout analysis, OCR, table recognition and visible chunking. As of version 1.0, those steps run on CPU in the open-source build, so large batches take time.
Is Flowise still maintained?
Its main GitHub repository was archived on 13 August 2026 and is read-only. Existing installs still run, but we wouldn't start a new project on it.
Do these tools support Arabic?
They can process Arabic text, but answer quality depends on the language model and embedding model you connect. LibreChat also offers an Arabic interface. Always test with real Arabic questions before rollout.
Related Articles
Best Open-Source OCR Tools for Invoices
Eight open-source OCR tools for supplier invoices, receipts and delivery notes, compared on licence, Arabic support, table handling and hardware, with a practical pipeline and our pick for Saudi and GCC SMEs.
softwareZero Data Retention: Claude vs OpenAI
Anthropic opened Enterprise Frontier Safeguards in public beta and OpenAI began testing Private Inference in the same week. Here's what each actually protects, who can use them, and what GCC SMEs and restaurant groups should do with the plans they already have.
softwareChatGPT Shared Usage Limits Explained
From December, ChatGPT Plus, Pro and Business share one usage pool across Chat, Work and Codex. Here's what OpenAI has confirmed, what it hasn't said yet, and how a GCC team can plan around it.
Build it with Vocxa
Custom integration platforms, AI apps, and software for startups and SMEs. Let's turn this into reality for your business.