kotaemon is an open-source tool based on RAG (Retrieval-Augmented Generation) for chatting with your own documents. It targets two types of users: end users who want to do question answering over documents, and developers who want to build their own RAG pipelines.
Main capabilities include: a clean and simple RAG question-answering interface; compatibility with multiple LLM API providers (OpenAI, AzureOpenAI, Cohere, etc.) and local LLMs (via ollama and llama-cpp-python); provides RAG pipeline building tools; the interface is based on Gradio and can be freely customized; supports multi-user login, can organize files with private/public collections and share conversations; can manage local and API models (OpenAI, Azure, Ollama, Groq); by default uses a RAG pipeline with hybrid (full-text and vector) retrieval plus reranking; supports multimodal document parsing and question answering over documents containing charts; provides detailed citations with document previews, allowing relevance scores and highlights to be viewed in the browser PDF viewer, and gives a warning when retrieval result relevance is too low; supports question decomposition and complex reasoning based on agents such as ReAct and ReWOO; important settings for retrieval and generation (including prompts) can be adjusted in the interface; easy to extend based on Gradio, and provides a GraphRAG indexing pipeline example.
Installation methods: Docker can be used (recommended), with lite and full image versions; the full version includes the unstructured extra package to support more file types such as .doc and .docx, but the image is larger; a main-ollama image with built-in Ollama is also provided for local/private RAG. Example command: 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-full. Supports linux/amd64 and linux/arm64 platforms, which can be specified with --platform. After startup, visit http://localhost:7860/。也可源码安装:git clone https://github.com/Cinnamon/kotaemon;使用 uv sync --python 3.10 or conda to create a python=3.10 environment and install libs/kotaemon[all] and libs/ktem; create a .env file (refer to .env.example); run python app.py, the default username and password are both admin.
Limitations and notes: processing files other than .pdf, .html, .mhtml, and .xlsx requires unstructured; local models, multimodal parsing (Azure Document Intelligence, Adobe PDF Extract, Docling, PaddleOCR), etc. need to be configured separately according to the documentation; GraphRAG requires additional installation and setting GRAPHRAG_API_KEY, the official MS GraphRAG index only supports OpenAI or Ollama API, and most users are advised to use NanoGraphRAG; other specific pricing and performance information is not yet provided.