█

AI/TLDR

Buy me a coffee
Buy me a coffee

Kotaemon

Open-source, clean and customizable RAG web UI for chatting with your documents

RAG Frameworks & PlatformsOpen source
Language
Python
License
Apache-2.0
$docker run \
IN SHORT

What is Kotaemon?

Kotaemon is an open-source RAG (retrieval-augmented generation) application that gives you a clean web interface for question answering over your own documents. It sits in the RAG Frameworks & Platforms category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Python and licensed Apache-2.0. To get started: run with Docker (recommended).

Overview

Kotaemon is an open-source RAG (retrieval-augmented generation) application that gives you a clean web interface for question answering over your own documents. It is built by Cinnamon with both end users and developers in mind: non-developers can run the app and chat with files, while developers can import it as a framework to build their own RAG pipelines.

The app ships with a sensible default pipeline that combines full-text and vector retrieval with re-ranking, supports multi-user logins with private and public document collections, and works with both local models (via Ollama and llama-cpp-python) and API providers such as OpenAI, Azure OpenAI, Cohere, and Groq. The UI is built on Gradio, so it is easy to customize or extend.

What it does

  • Self-hosted document QA web UI with multi-user login and private or public file collections you can share
  • Hybrid RAG pipeline that mixes full-text and vector retrieval with re-ranking for better answer quality
  • Multi-modal QA that parses documents including figures and tables, with selectable parsing options in the UI
  • Detailed citations shown inside an in-browser PDF viewer, with highlights and relevance scores plus low-relevance warnings
  • Complex reasoning support, including question decomposition and agent-based methods such as ReAct and ReWOO
  • Works with local LLMs (Ollama, llama-cpp-python) and API providers (OpenAI, Azure, Cohere, Groq); GraphRAG indexing included as an example

Getting started

Kotaemon requires Python 3.10 or newer. The maintainers recommend running it with Docker, but you can also clone the repo and install it locally. After it starts, open the web UI in your browser.

Run with Docker (recommended)

Pull and run the lite image, which works well for most users. It mounts a local folder for app data and exposes the Gradio server on port 7860.

shellshell
docker run \
  -e GRADIO_SERVER_NAME=0.0.0.0 \
  -e GRADIO_SERVER_PORT=7860 \
  -v ./ktem_app_data:/app/ktem_app_data \
  -p 7860:7860 -it --rm \
  ghcr.io/cinnamon/kotaemon:main-lite

Open the web UI

Once the container is up, visit the local URL in your browser to access the Kotaemon WebUI.

texttext
http://localhost:7860/

Install without Docker

Clone the repository and set up the environment. The maintainers recommend using uv with Python 3.10.

shellshell
git clone https://github.com/Cinnamon/kotaemon
cd kotaemon
uv sync --python 3.10
source .venv/bin/activate

Configure your models

Create a .env file in the project root using .env.example as a template. This lets you pre-configure your LLM and embedding models (for example OpenAI, Azure, or Ollama) before starting the app.

shellshell
cp .env.example .env

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Run a private, self-hosted assistant that answers questions over your own PDFs, Office files, and other documents
  • Build and prototype a custom RAG pipeline as a developer, then see it running live in the included Gradio UI
  • Set up a shared team knowledge base with multi-user logins and private or public document collections
  • Get trustworthy, citation-backed answers where every claim links to the highlighted source passage in an in-browser PDF viewer

How Kotaemon compares

Kotaemon alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Dify★ 162kAn open-source platform with a visual workflow builder for creating LLM and RAG applications without writing much code.
graphify★ 155kTurns a folder of code, docs, PDFs and images into a local knowledge graph with tree-sitter AST parsing and Leiden communities — queryable by agents over MCP, no vector store.
RAGFlow★ 95kA RAG engine built around deep document understanding that turns complex files into a grounded, citation-backed question-answering layer.
Context7★ 65.7kContext7 pulls current, version-specific documentation and code examples for any library and feeds them into your LLM, available as a CLI skill or an MCP server.
Pathway★ 61.9kA Python framework with a Rust streaming engine that keeps ETL, real-time analytics and RAG pipelines continuously up to date as source data changes.
LightRAG★ 41kA graph-based RAG system that builds an entity-and-relationship knowledge graph for fast retrieval and easy incremental updates.
PageIndex★ 40.8kPageIndex turns long PDFs into a table-of-contents tree and uses LLM reasoning to retrieve relevant sections, with no vector database and no chunking.
Kotaemon★ 25.9kOpen-source, clean and customizable RAG web UI for chatting with your documents