LibreAI / RAG & Knowledge / Langchain-Chatchat
// rag · chatchat-space/Langchain-Chatchat

Langchain-Chatchat

Local knowledge-base RAG and agent app built on LangChain with ChatGLM, Qwen and Llama models

★ 38.7k stars⑂ 6.3k forksApache-2.0updated 2025-11
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

Langchain-Chatchat is an open-source rag & knowledge project by chatchat-space (chatchat-space/Langchain-Chatchat on GitHub). It has 38,676 GitHub stars and 6,257 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 10 November 2025.

GitHub stars
38,676
Forks
6,257
License
Apache-2.0
Last updated on GitHub
10 November 2025
Listing
Full install guide
// how it works

How it works

  1. Clarify your goal

    Decide what you want from Langchain-Chatchat and check the README and requirements to confirm it fits your setup and Python environment.

  2. Get the code

    Clone the repository from GitHub (github.com/chatchat-space/Langchain-Chatchat) or use the documented install channel if you do not need the source.

  3. Install and configure

    Follow the README quickstart to install dependencies and set any required configuration or credentials.

  4. Run your first task

    Work through the README's first example end to end, then adapt it to your own project or data.

// features

Why people love it

Local knowledge base

Chat over your own documents using local models like ChatGLM, Qwen and Llama.

RAG plus agents

Combines retrieval-augmented generation with agent capabilities in one app.

Many model backends

Supports deployment frameworks including Ollama, Xinference and FastChat.

Vector stores

Works with FAISS and Milvus for embedding storage.

Streamlit UI

Ships a web UI for chatting with the knowledge base.

Docker deployment

Can be deployed with pip or Docker, per the quick start.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Start by getting the source and entering the project directory.

    git clone https://github.com/chatchat-space/Langchain-Chatchat.git
    cd Langchain-Chatchat
  2. Install with pip

    Install the package from PyPI.

    pip install langchain-chatchat -U
  3. Initialize and start

    Follow the quick start to initialize the knowledge base and launch the app.

    chatchat init  # see README for the exact command sequence
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains Langchain-Chatchat?

It is maintained by chatchat-space and contributors on GitHub, where the repository github.com/chatchat-space/Langchain-Chatchat is the canonical home for code, issues and releases.

Is Langchain-Chatchat free to use?

Yes — it is open source under the Apache-2.0 license. Read the license in the repository for what is permitted, including any conditions on redistribution or commercial use.

Does it need a paid API key?

No paid key needed when using local models — you run ChatGLM, Qwen or Llama yourself.

How does Langchain-Chatchat compare to alternatives?

Compared with PrivateGPT: Both do private local RAG; Chatchat is a full LangChain application with UI, while PrivateGPT focuses on an API layer.

How do I get started?

Clone github.com/chatchat-space/Langchain-Chatchat, follow the README quickstart to install it, and run the documented first example before adapting it to your own work.

// keep exploring

Similar tools

RAG & Knowledge

autoflow

Graph RAG conversational knowledge base built on TiDB Serverless vector storage

★ 3.0k starsApache-2.0
View guide →
RAG & Knowledge

KnowNote

A local-first AI knowledge base and NotebookLM replacement built with Electron.

★ 1.2k starsGPL-3.0
View guide →
RAG & Knowledge

private-gpt

Complete API layer for private AI apps on local models: RAG, skills, tools, MCP and text-to-SQL

★ 57.6k starsApache-2.0
View guide →
RAG & Knowledge

design-os-3d-blender

AI agent operating system for Blender 5.2 — bpy knowledge base, execution contract, 3D-print production gate.

★ 88 starsMIT
View guide →
RAG & Knowledge

llmware

Unified framework for enterprise RAG pipelines with small, specialized models - local, private and secure.

★ 14.8k starsApache-2.0
View guide →
RAG & Knowledge

QAnything

Local knowledge-base Q&A over PDFs, Office files, images and web pages - offline and CPU-friendly.

★ 14.2k starsAGPL-3.0
View guide →
// alternatives

Alternatives in RAG & Knowledge

The most-starred other RAG & Knowledge projects in the LibreAI catalogue — the realistic shortlist if Langchain-Chatchat is not the right fit.

Get Langchain-Chatchat

Free and open — grab the source, star the repo, and start creating.