imClumsyPanda f0250eef38
Merge pull request #1 from zx2021/master
修复requirements.txt文件
2023-03-31 22:04:10 +08:00
2023-03-31 20:09:40 +08:00
2023-03-31 20:09:40 +08:00
2023-03-31 20:09:40 +08:00
2023-03-31 20:23:49 +08:00
2023-03-31 21:49:16 +08:00

ChatGLM Application Based on Local Knowledge

Introduction

🌍 中文文档

🤖 A local knowledge based LLM Application with ChatGLM-6B and langchain.

💡 Inspired by document.ai by GanymedeNil and ChatGLM-6B Pull Request by AlexZhangji.

In this project, GanymedeNil/text2vec-large-chinese is used as Embedding Modeland ChatGLM-6B used as LLM。Based on those modelsthis project can be deployed offline with all open source models。

Usage

1. install python packages

pip install -r requirements

Attention: With langchain.document_loaders.UnstructuredFileLoader used to connect with local knowledge file, you may need some other dependencies as mentioned in langchain documentation

2. Run knowledge_based_chatglm.py script

python knowledge_based_chatglm.py

Roadmap

  • local knowledge based application with langchain + ChatGLM-6B
  • unstructured files loaded with langchain
  • more different file format loaded with langchain
  • implement web ui DEMO with gradio/streamlit
  • implement API with fastapiand web ui DEMO with API
Description
No description provided
Readme Apache-2.0 108 MiB
Languages
JavaScript 72.4%
Python 27.5%