chatchat-space/Langchain-Chatchat
Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
Ranks #34 among AI repositories tracked this week, and #15 over the last 30 days; #276 of 2,502 repositories GStars tracks this week (top 11%).
No releases in the last 90 days; the most recent was 812 days ago, with 155 contributors on GitHub.
Use Cases & Benefits
- Implements a local knowledge-based question answering system using Langchain and open-source large language models like ChatGLM, Qwen, and Llama.
- Enables fully offline, private deployment supporting multiple model inference frameworks and vector databases with flexible API and WebUI access.
- Use for building Chinese language knowledge base chatbots that run locally without internet dependency.
- Use for integrating diverse open-source LLMs and embedding models into retrieval-augmented generation (RAG) applications with agent capabilities.
- Use for deploying multi-modal conversational AI including text, image, and database dialogues with customizable system prompts and multi-session support.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
Watch-outs
- No commits in the last six months (last push Nov 2025).
General guidance from repository metadata, not legal advice. How we score
From the README
📃 LangChain-Chatchat (原 Langchain-ChatGLM)
基于 ChatGLM 等大语言模型与 Langchain 等应用框架实现,开源、可离线部署的 RAG 与 Agent 应用项目。
🤖️ 一种利用 langchain 思想实现的基于本地知识库的问答应用,目标期望建立一套对中文场景与开源模型支持友好、可离线运行的知识库问答解决方案。
💡 受 GanymedeNil 的项目 document.ai 和 AlexZhangji 创建的 ChatGLM-6B Pull Request 启发,建立了全流程可使用开源模型实现的本地知识库问答应用。本项目的最新版本中可使用 Xinference、Ollama 等框架接入 GLM-4-Chat、 Qwen2-Instruct、 Llama3 等模型,依托于 langchain 框架支持通过基于 FastAPI 提供的 API 调用服务,或使用基于 Streamlit 的 WebUI 进行操作。
✅ 本项目支持市面上主流的开源 LLM、 Embedding 模型与向量数据库,可实现全部使用开源模型离线私有部署。与此同时,本项目也支持 OpenAI GPT API 的调用,并将在后续持续扩充对各类模型及模型 API 的接入。
⛓️ 本项目实现原理如下图所示,过程包括加载文件 -> 读取文本 -> 文本分割 -> 文本向量化 -> 问句向量化 -> 在文本向量中匹配出与问句向量最相似的
top k个 -> 匹配出的文本作为上下文和问题一起添加到prompt中 -> 提交给LLM生成回答。🚩 本项目未涉及微调、训练过程,但可利用微调或训练对本项目效果进行优化。
🌐 AutoDL 镜像 中
0.3.0版本所使用代码已更新至本项目v0.3.0版本。🐳 Docker 镜像将会在近期更新。
🧑💻 如果你想对本项目做出贡献,欢迎移步开发指南 获取更多开发部署相关信息。
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
6.3K+39
Open issues
32+10
Compared with peers in AI
Fastest-growing repositories GStars tracks in this cohort for the week of Sep 27, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| rohitg00/ai-engineering-from-scratch | 69.8K | +5.6K | 75 | today |
| VectifyAI/PageIndex | 39.1K | +2.7K | 75 | 3 days ago |
| heygen-com/hyperframes | 64.6K | +2.7K | 45 | today |
| harry0703/MoneyPrinterTurbo | 131.6K | +2.5K | 75 | 12 days ago |
| Leonxlnx/taste-skill | 94.5K | +2.0K | 75 | — |
| chatchat-space/Langchain-Chatchat | 38.7K | +0 | 35 | 812 days ago |
| Category median | 69.8K | +2.7K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description