Get a local knowledge-based LLM app for chatbot development, ideal for startup founders, with 38k+ GitHub stars.
38,138 stars6,214 forksPythonQuality 8/10Updated 6/5/2026100% free · open source
What it does
Langchain-Chatchat enables founders to build intelligent chatbots using local large language models like ChatGLM and Llama, turning their data into interactive AI tools.
Install / run
git clone https://github.com/chatchat-space/Langchain-Chatchat.git && cd Langchain-Chatchat
When to use it
•You want to create a custom chatbot that leverages your own data and knowledge base.
•You need an AI-powered support tool that can understand and respond to user queries in a specific domain or industry.
•You prefer to keep your data and AI models local, rather than relying on cloud-based services.
Quick start
1Modify the `config.json` file to specify your local LLM model, such as ChatGLM or Llama.
2Create a new knowledge graph by running `python scripts/create_kg.py` and following the prompts.
3Train a new agent by running `python scripts/train_agent.py` with your specified model and knowledge graph.
4Test your chatbot by running `python scripts/chat.py` and interacting with the agent.
5Refine your chatbot's performance by tuning hyperparameters and adjusting the knowledge graph.
Ready-to-paste prompt
python scripts/chat.py -m ChatGLM -kg my_knowledge_graph.json -a my_agent.json
Heads up: Before running Langchain-Chatchat, ensure you have a compatible local LLM model installed, such as ChatGLM or Llama, and that the model's API is properly configured and accessible.
Saves to your device
Topics
chatbot
chatchat
chatglm
chatgpt
embedding
faiss
fastchat
gpt
knowledge-base
langchain
langchain-chatglm
llama
llm
milvus
ollama
qwen
rag
retrieval-augmented-generation
streamlit
xinference
What's inside — free to inspect
No purchase needed
Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.
8
top-level files
6
folders
141.1M
repo size
Apache-2.0
license
Key files
README_en.md
README.md
File tree
.github/
docker/
docs/
libs/
markdown_docs/
tools/
.gitignore
.gitmodules
LICENSE
poetry.toml
pyproject.toml
README_en.md
README.md
release.py
Quick Actions
Details
Creator
chatchat-space
Language
Python
Category
support
Published
3/31/2023
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.