RAG and document Q&A you can self-host

Retrieval-augmented generation means the program searches your documents and then asks a model to answer from those passages. Twelve projects were checked on 2026-11-30. All twelve are marked self-host / local and free to run. This guide does not score answer quality.

Apps and frameworks the pages describe

  • PrivateGPT's docs describe asking questions of your documents on your own infrastructure.
  • AnythingLLM's page describes an all-in-one workspace for documents and agents, self-hosted or hosted by the vendor.
  • Khoj's page describes a personal AI over your own notes and documents. kotaemon's page describes a RAG UI for chatting with documents. RAGFlow's page describes a RAG engine with document layout, OCR and tables.
  • DocsGPT's docs describe agents grounded in your docs. Verba is Weaviate's RAG application. LLMWare's page describes agent workflows on your device or private infrastructure.
  • Dify, Flowise and Langflow describe platforms or visual builders for agents and workflows, with a way to run them yourself. Haystack's page describes a Python framework for RAG and search, plus a commercial Haystack Enterprise Platform.

Paid cloud, only where a page supported it

Marked yes: AnythingLLM (its pricing page), Dify (Dify Cloud on its pricing page), Flowise (the homepage describes cloud and on-premises options; the pricing URL was a sign-in wall, so no plan price is repeated here), Haystack (Haystack Enterprise Platform pricing, including cloud or custom deployment), DocsGPT (the README names DocsGPT Cloud; a pricing page confirming a price was not used), and Langflow (the homepage offers a free cloud account as well as self-deployment; a pricing URL returned 404, so no paid-tier price is stated here).

Marked no: kotaemon and Verba. Khoj is also no, because its app page said the hosted service had shut down. PrivateGPT, RAGFlow and LLMWare are Unknown. LLMWare's own wording says no cloud dependency and no token costs; a separate paid hosted product was still not confirmed. PrivateGPT's company site describes an on-prem server, and its pricing URL returned 404.

Licenses with extra lines

Dify's LICENSE is a modified Apache-2.0 with conditions on multi-tenant use and on logo and copyright. Flowise quotes Apache-2.0, with an enterprise directory under a Commercial License. The others in this category quote Apache-2.0, MIT, AGPL-3.0 (Khoj) or BSD-3-Clause (Verba), as copied on each tool page.

A modest way to choose

  1. If you want one app over a folder of documents, read PrivateGPT, AnythingLLM, Khoj, kotaemon, RAGFlow, DocsGPT, Verba and LLMWare, and open the one whose license and hosting note you accept.
  2. If you are building a pipeline rather than installing a finished app, read Haystack, Dify, Flowise and Langflow.
  3. The vector database underneath is often separate. See the vector-search guide. DocsGPT's official pages used here are docs.docsgpt.cloud and the GitHub repo. A different docsgpt.com address was not used as a source.

RAG and document Q&A tools

Alphabetical. Checked 2026-11-30 against each vendor's own pages. Open a tool for its sources.

ToolLicenseSelf-host?Paid cloud?Link
AnythingLLMA private, all-in-one AI workspace for documents and agents, which you can self-host or have hosted by the vendor.MITSelf-host / localPaid cloud existsOfficial site ↗
DifyAn open-source platform for building and running AI agents and RAG pipelines, available as Dify Cloud or as a self-hosted deployment.Modified Apache-2.0 with additional conditions (multi-tenant use and logo/copyright restrictions, as stated in LICENSE)Self-host / localPaid cloud existsOfficial site ↗
DocsGPTOpen-source, self-hosted AI agents grounded in your docs, with an optional DocsGPT Cloud at app.docsgpt.cloud.MITSelf-host / localPaid cloud existsOfficial site ↗
FlowiseAn open-source, visual platform for building AI agents and LLM workflows, with cloud and on-premises deployment options.Apache-2.0, with the packages/server/src/enterprise directory under a Commercial License (as stated in LICENSE.md)Self-host / localPaid cloud existsOfficial site ↗
Haystackdeepset's open-source Python framework for building production RAG, search and LLM applications, with a commercial Haystack Enterprise Platform.Apache-2.0Self-host / localPaid cloud existsOfficial site ↗
KhojAn open-source, self-hostable personal AI that can search and chat over your own notes and documents.AGPL-3.0Self-host / localNo hosted product foundOfficial site ↗
kotaemonAn open-source, clean and customizable RAG UI for chatting with your documents (from Cinnamon).Apache-2.0Self-host / localNo hosted product foundOfficial site ↗
LangflowAn open-source, Python-based visual framework for building AI applications; the homepage offers a free cloud account as well as self-deployment.MITSelf-host / localPaid cloud existsOfficial site ↗
LLMWareA toolkit for running AI agent workflows on your device or private infrastructure, described as having no cloud dependency and no token costs.Apache-2.0Self-host / localUnknownOfficial site ↗
PrivateGPTAsk questions of your documents with a private, self-hosted RAG application; the docs say the goal is a Claude-style API on your own infrastructure.Apache-2.0Self-host / localUnknownOfficial site ↗
RAGFlowAn open-source RAG engine for building document-grounded AI agents, with deep document understanding (layout, OCR, tables).Apache-2.0Self-host / localUnknownOfficial site ↗
VerbaWeaviate's open-source RAG application for chatting with your documents (The Golden RAGtriever).BSD-3-ClauseSelf-host / localNo hosted product foundOfficial site ↗

Related guides

This guide is general information, not professional advice. Check each project's own documentation before you install. The table only repeats facts already copied into the directory.