Knowledge base & RAG

Upload company documents and let staff or customers ask questions with cited answers.

Quick answer

We track 22 self-hostable knowledge base & rag apps: RAGFlow, AFFiNE, AppFlowy, AnythingLLM, PrivateGPT, Open Notebook, LightRAG, WeKnora, Langchain-Chatchat, Onyx (formerly Danswer), Karakeep, FastGPT, kotaemon, MaxKB, LocalGPT, Linkwarden, DocsGPT, QAnything, R2R, OpenAgent, PipesHub, Morphik Core. Most GitHub stars: RAGFlow (95.2k). Lowest official hardware: AnythingLLM (minimum 2 vCPU · 2 GB RAM · 5 GB disk), from about €16.99/month on our reference server.

Last updated

Knowledge base & RAG: side-by-side

AppLicenseOfficial hardwareEst. server costGitHub starsStatus
RAGFlowApache-2.0 (Permissive)recommended 4 vCPU · 16 GB RAM · 50 GB disk (no separate minimum published)from €59.49/mo95.2kActive
AFFiNEMIT (Community Edition) with Enterprise Edition license for server code (Open core)recommended 4 vCPU · 2 GB RAM (no separate minimum published)from €30.49/mo82.5kActive
AppFlowyAGPL-3.0 (client); AppFlowy Self-Hosted Commercial License (current server images) (Open core)recommended 4 vCPU · 16 GB RAM (no separate minimum published)from €59.49/mo80.0kActive
AnythingLLMMIT (Permissive)minimum 2 vCPU · 2 GB RAM · 5 GB diskfrom €16.99/mo69.0kActive
PrivateGPTApache-2.0 (Permissive)Not publishedNot estimated (no official RAM figure)57.7kActive
Open NotebookMIT (Permissive)minimum 4 GB RAMfrom €16.99/mo42.5kActive
LightRAGMIT (Permissive)Not publishedNot estimated (no official RAM figure)41.0kActive
WeKnoraMIT (with third-party components) (Permissive)recommended 4 vCPU · 8 GB RAM (no separate minimum published)from €30.49/mo38.9kActive
Langchain-ChatchatApache-2.0 (Permissive)Not publishedNot estimated (no official RAM figure)38.7kStale (no commit in 180+ days)
Onyx (formerly Danswer)MIT (Community Edition) + Onyx Enterprise License (ee directories) (Open core)minimum 4 vCPU · 10 GB RAM · 32 GB disk (recommended 8 vCPU · 16 GB RAM · 500 GB disk)from €59.49/mo33.7kActive
KarakeepAGPL-3.0 (Network copyleft (AGPL))Not publishedNot estimated (no official RAM figure)31.1kActive
FastGPTFastGPT Open Source License (Apache-2.0 with conditions) (Custom / conditional)minimum 2 vCPU · 4 GB RAM (recommended 2 vCPU · 8 GB RAM)from €16.99/mo30.2kActive
kotaemonApache-2.0 (Permissive)Not publishedNot estimated (no official RAM figure)25.9kStale (no commit in 180+ days)
MaxKBGPL-3.0 (Copyleft (GPL))minimum 4 vCPU · 8 GB RAM · 100 GB diskfrom €30.49/mo23.3kActive
LocalGPTMIT (Permissive)minimum 4 vCPU · 8 GB RAM · 50 GB disk (recommended 8 vCPU · 32 GB RAM · 200 GB disk)from €30.49/mo22.2kActive
LinkwardenAGPL-3.0 (Network copyleft (AGPL))minimum 2 vCPU (recommended 4 GB RAM)from €16.99/mo20.6kActive
DocsGPTMIT (Permissive)Not publishedNot estimated (no official RAM figure)18.4kActive
QAnythingAGPL-3.0 (Network copyleft (AGPL))minimum 20 GB RAMfrom €85.49/mo14.2kActive
R2RMIT (Permissive)Not publishedNot estimated (no official RAM figure)8.1kStale (no commit in 180+ days)
OpenAgentApache-2.0 (Permissive)Not publishedNot estimated (no official RAM figure)5.8kActive
PipesHubApache-2.0 (Permissive)minimum 8 GB RAM (recommended 16 GB RAM)from €30.49/mo4.2kActive
Morphik CoreBusiness Source License 1.1 (Apache-2.0 after four years) (Source-available)recommended 8 GB RAM (no separate minimum published)from €30.49/mo3.7kActive

All knowledge base & rag apps

RAGFlow

Active

RAG engine with deep document parsing (OCR, layout and tables) and cited answers.

  • ★ 95.2k
  • ⟳ Dec 6, 2026
  • Permissive
  • rec. 16 GB RAM
  • from €59.49/mo

AFFiNE

Active

Notion- and Miro-style workspace (docs, whiteboards, databases) with built-in AI, self-hostable with Docker.

  • ★ 82.5k
  • ⟳ Dec 5, 2026
  • Open core
  • rec. 2 GB RAM
  • from €30.49/mo

AppFlowy

Active

Open-source Notion-style AI workspace (docs, databases, boards) with desktop apps and a self-hosted cloud server.

  • ★ 80.0k
  • ⟳ Oct 28, 2026
  • Open core
  • rec. 16 GB RAM
  • from €59.49/mo

AnythingLLM

Active

All-in-one private chat with your documents, agents and an embeddable widget.

  • ★ 69.0k
  • ⟳ Dec 6, 2026
  • Permissive
  • min 2 GB RAM
  • from €16.99/mo

PrivateGPT

Active

API-first private document Q&A that sits on top of your own LLM server.

  • ★ 57.7k
  • ⟳ Dec 3, 2026
  • Permissive
  • RAM: n/a
  • Cost: n/a

Open Notebook

Active

Private, self-hosted alternative to Google NotebookLM with your choice of AI models.

  • ★ 42.5k
  • ⟳ Dec 1, 2026
  • Permissive
  • min 4 GB RAM
  • from €16.99/mo

LightRAG

Active

Graph-based RAG server that builds a knowledge graph from your documents, with a web UI and REST API.

  • ★ 41.0k
  • ⟳ Dec 6, 2026
  • Permissive
  • RAM: n/a
  • Cost: n/a

WeKnora

Active

Tencent's open-source knowledge-base and agent platform with document parsing, RAG and team workspaces.

  • ★ 38.9k
  • ⟳ Dec 5, 2026
  • Permissive
  • rec. 8 GB RAM
  • from €30.49/mo

Chinese-first local knowledge-base Q&A and agent app built on LangChain, wired to local model servers.

  • ★ 38.7k
  • ⟳ Nov 10, 2025
  • Permissive
  • RAM: n/a
  • Cost: n/a

Karakeep

Active

Self-hosted bookmark and read-later app (formerly Hoarder) with AI tagging, summaries and full-text search.

  • ★ 31.1k
  • ⟳ Dec 6, 2026
  • Network copyleft (AGPL)
  • RAM: n/a
  • Cost: n/a

FastGPT

Active

Knowledge-base Q&A and visual AI workflow platform.

  • ★ 30.2k
  • ⟳ Dec 6, 2026
  • Custom / conditional
  • min 4 GB RAM
  • from €16.99/mo

kotaemon

Stale

Open-source RAG web app for chatting with your documents, with citations and GraphRAG.

  • ★ 25.9k
  • ⟳ May 30, 2026
  • Permissive
  • RAM: n/a
  • Cost: n/a

MaxKB

Active

Enterprise knowledge-base and agent platform with RAG and workflows.

  • ★ 23.3k
  • ⟳ Dec 3, 2026
  • Copyleft (GPL)
  • min 8 GB RAM
  • from €30.49/mo

LocalGPT

Active

Chat with your documents through a local RAG stack that talks to Ollama.

  • ★ 22.2k
  • ⟳ Aug 21, 2026
  • Permissive
  • min 8 GB RAM
  • from €30.49/mo

Linkwarden

Active

Collaborative bookmark preservation with configurable AI tagging.

  • ★ 20.6k
  • ⟳ Dec 4, 2026
  • Network copyleft (AGPL)
  • rec. 4 GB RAM
  • from €16.99/mo

DocsGPT

Active

Open-source platform for AI agents and assistants that answer from your documents with sources.

  • ★ 18.4k
  • ⟳ Dec 5, 2026
  • Permissive
  • RAM: n/a
  • Cost: n/a

QAnything

Active

Local knowledge-base Q&A over many file types, with hybrid search and cited answers, started with one Docker Compose command.

  • ★ 14.2k
  • ⟳ Sep 22, 2026
  • Network copyleft (AGPL)
  • min 20 GB RAM
  • from €85.49/mo

R2R

Stale

Production RAG platform with a REST API, hybrid search, knowledge graphs and an agentic Deep Research mode.

  • ★ 8.1k
  • ⟳ Nov 7, 2025
  • Permissive
  • RAM: n/a
  • Cost: n/a

OpenAgent

Active

Self-hosted AI assistant with RAG, agent tools, SSO and an admin UI, shipped as a single binary.

  • ★ 5.8k
  • ⟳ Dec 4, 2026
  • Permissive
  • RAM: n/a
  • Cost: n/a

PipesHub

Active

Self-hosted workplace search and AI answers across 50+ connected apps, filtered by each user's permissions.

  • ★ 4.2k
  • ⟳ Dec 6, 2026
  • Permissive
  • min 8 GB RAM
  • from €30.49/mo

Morphik Core

Active

Multimodal document retrieval engine for RAG over PDFs, images and visually rich files, with an API, SDKs and MCP.

  • ★ 3.7k
  • ⟳ Nov 24, 2026
  • Source-available
  • rec. 8 GB RAM
  • from €30.49/mo

Plan your deployment

Use these guides to check the model, hardware and operating decisions alongside the app comparison.

Head-to-head comparisons

Alternatives and SaaS replacements

Jump to ranked open-source alternatives or to pages that map these apps onto commercial SaaS products.

All alternatives · All SaaS alternatives · Compare hub