chatchat-space

    chatchat-space/Langchain-Chatchat

    #276 this week

    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

    ai
    llm
    chatbot
    chatchat
    chatglm
    chatgpt
    embedding
    Python
    Apache-2.0
    38.7K stars
    6.3K forks
    38.7K GitHub watchers
    Updated Oct 2, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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 镜像将会在近期更新。

    🧑‍💻 如果你想对本项目做出贡献,欢迎移步开发指南 获取更多开发部署相关信息。

    Excerpt from the chatchat-space/Langchain-Chatchat README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    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

    chatchat-space/Langchain-Chatchat compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    rohitg00/ai-engineering-from-scratch69.8K+5.6K75today
    VectifyAI/PageIndex39.1K+2.7K753 days ago
    heygen-com/hyperframes64.6K+2.7K45today
    harry0703/MoneyPrinterTurbo131.6K+2.5K7512 days ago
    Leonxlnx/taste-skill94.5K+2.0K75—
    chatchat-space/Langchain-Chatchat38.7K+035812 days ago
    Category median69.8K+2.7K75—

    Discover Repositories

    Search across tracked repositories by name or description