# Kotaemon

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

- Category: Retrieval & Knowledge (RAG) / RAG Frameworks & Platforms
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/Cinnamon/kotaemon
- Website: https://cinnamon.github.io/kotaemon/
- Canonical page: https://ai-tldr.dev/tools/kotaemon/

## In short

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.

1. 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.

```shell
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
```

2. Open the web UI

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

```text
http://localhost:7860/
```

3. Install without Docker

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

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

4. 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.

```shell
cp .env.example .env
```

## 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
