Home

Awesome

<img src='./img/bg.jpg'> <p align="center"> <a href="https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui"><img src="https://img.shields.io/badge/GitHub-24292e" alt="github"></a> <a href="https://huggingface.co/spaces/thomas-yanxin/LangChain-ChatLLM"><img src="https://img.shields.io/badge/HuggingFace-yellow" alt="HuggingFace"></a> <a href="https://modelscope.cn/studios/AI-ModelScope/LangChain-ChatLLM/summary"><img src="https://img.shields.io/badge/ModelScope-blueviolet" alt="modelscope"></a> <a href="https://openxlab.org.cn/apps/detail/thomas-yanxin/LangChain-ChatLLM"><img src="https://cdn-static.openxlab.org.cn/app-center/openxlab_app.svg" alt="openxlab"></a> <a href="https://openi.pcl.ac.cn/Learning-Develop-Union/LangChain-ChatGLM-Webui"><img src="https://img.shields.io/badge/-OpenI-337AFF" alt="OpenI"></a> <a href="https://aistudio.baidu.com/aistudio/projectdetail/6195067"><img src="https://img.shields.io/badge/-AIStudio-2135E8" alt="AIStudio"></a> <a href="https://www.bilibili.com/video/BV1So4y1L7Hb/?share_source=copy_web&vd_source=8162f92b2a1a94035ca9e4e0f6e1860a"><img src="https://img.shields.io/badge/-bilibili-ff69b4" alt="bilibili"></a> </p> <div align="center">

stars contributors issues pull requests

</p> </div> <p align="center"> <a href="https://www.bilibili.com/video/BV1So4y1L7Hb/?share_source=copy_web&vd_source=8162f92b2a1a94035ca9e4e0f6e1860a"><strong>视频链接</strong></a> | <a href="https://huggingface.co/spaces/thomas-yanxin/LangChain-ChatLLM"><strong>在线体验</strong></a> | <a href="https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui/blob/master/docs/deploy.md"><strong>部署文档</strong></a>| <a href="https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui/blob/master/docs/update_history.md"><strong>更新日志</strong></a> | <a href="https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui/blob/master/docs/faq.md"><strong>常见问题</strong></a> </p>

🔥 项目体验

本项目提供基于HuggingFace社区OpenXLabModelScope魔搭社区飞桨AIStudio社区的在线体验, 欢迎尝试和反馈!

👏 项目介绍

langchain-ChatGLM启发, 利用LangChain和ChatGLM-6B系列模型制作的Webui, 提供基于本地知识的大模型应用.

目前支持上传 txt、docx、md、pdf等文本格式文件, 提供包括ChatGLM-6B系列、Belle系列等模型文件以及GanymedeNil/text2vec-large-chinesenghuyong/ernie-3.0-base-zhnghuyong/ernie-3.0-nano-zh等Embedding模型.

<details><summary><b>HuggingFace效果</b></summary>

</details> <details><summary><b>ModelScope效果</b></summary>

</details>

🚀 使用方式

提供ModelScope版本和HuggingFace版本.
需要Python>=3.8.1

详细部署教程可参考: 部署文档 | 视频教程

支持模型

若存在网络问题可在此找到本项目涉及的所有模型:

large language modelEmbedding model
ChatGLM-6Btext2vec-large-chinese
ChatGLM-6B-int8ernie-3.0-base-zh
ChatGLM-6B-int4ernie-3.0-nano-zh
ChatGLM-6B-int4-qeernie-3.0-xbase-zh
Vicuna-7b-1.1simbert-base-chinese
Vicuna-13b-1.1paraphrase-multilingual-MiniLM-L12-v2
BELLE-LLaMA-7B-2M
BELLE-LLaMA-13B-2M
internlm-chat-7b-8k
internlm-chat-7b-v1_1
internlm-chat-7b

💪 更新日志

详情请见: 更新日志

项目处于初期阶段, 有很多可以做的地方和优化的空间, 欢迎感兴趣的社区大佬们一起加入!

❤️ 引用

  1. ChatGLM-6B: ChatGLM-6B: 开源双语对话语言模型
  2. LangChain: Building applications with LLMs through composability
  3. langchain-ChatGLM: 基于本地知识的 ChatGLM 应用实现
<details><summary><b>ChatGLM论文引用</b></summary>
@inproceedings{
  zeng2023glm-130b,
  title={{GLM}-130B: An Open Bilingual Pre-trained Model},
  author={Aohan Zeng and Xiao Liu and Zhengxiao Du and Zihan Wang and Hanyu Lai and Ming Ding and Zhuoyi Yang and Yifan Xu and Wendi Zheng and Xiao Xia and Weng Lam Tam and Zixuan Ma and Yufei Xue and Jidong Zhai and Wenguang Chen and Zhiyuan Liu and Peng Zhang and Yuxiao Dong and Jie Tang},
  booktitle={The Eleventh International Conference on Learning Representations (ICLR)},
  year={2023},
  url={https://openreview.net/forum?id=-Aw0rrrPUF}
}
@inproceedings{du2022glm,
  title={GLM: General Language Model Pretraining with Autoregressive Blank Infilling},
  author={Du, Zhengxiao and Qian, Yujie and Liu, Xiao and Ding, Ming and Qiu, Jiezhong and Yang, Zhilin and Tang, Jie},
  booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={320--335},
  year={2022}
}
</details> <details><summary><b>BELLE论文引用</b></summary>
@misc{BELLE,
  author = {Yunjie Ji, Yong Deng, Yan Gong, Yiping Peng, Qiang Niu, Baochang Ma and Xiangang Li},
  title = {BELLE: Be Everyone's Large Language model Engine },
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/LianjiaTech/BELLE}},
}
@article{belle2023exploring,
  title={Exploring the Impact of Instruction Data Scaling on Large Language Models: An Empirical Study on Real-World Use Cases},
  author={Yunjie Ji, Yong Deng, Yan Gong, Yiping Peng, Qiang Niu, Lei Zhang, Baochang Ma, Xiangang Li},
  journal={arXiv preprint arXiv:2303.14742},
  year={2023}
}
</details>

🙇‍ ‍感谢

  1. langchain-ChatGLM提供的基础框架
  2. 魔搭ModelScope提供展示空间
  3. OpenI启智社区提供调试算力
  4. langchain-serve提供十分简易的Serving方式
  5. 除此以外, 感谢来自社区的同学们对本项目的关注和支持! <a href="https://github.com/thomas-yanxin/LangChain-ChatGLM-Webui/graphs/contributors">
<img src="https://contrib.rocks/image?repo=thomas-yanxin/LangChain-ChatGLM-Webui" /> </a>

🌟 Star History

Star History Chart

😊 加群沟通

<div> <img src="./img/wechat_group.jpg" width = 50%/> </div>