{"id":28405052,"url":"https://github.com/dynamiclu/langchain-chatbi","last_synced_at":"2025-07-04T12:32:11.993Z","repository":{"id":220528997,"uuid":"751820853","full_name":"dynamiclu/Langchain-ChatBI","owner":"dynamiclu","description":"一种利用Langchain框架和本地向量库实现的对话式BI，它的目标是帮助用户寻找、理解数据知识，并能够分析数据、洞察结果，通过自然语言对话，降低数据分析的门槛。","archived":false,"fork":false,"pushed_at":"2024-03-20T16:47:41.000Z","size":1734,"stargazers_count":133,"open_issues_count":3,"forks_count":30,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-29T04:36:47.444Z","etag":null,"topics":["baichuan","bge-large-en","chatglm","faiss","langchain","python3","qianwen","rag","text2vec"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dynamiclu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-02T11:59:47.000Z","updated_at":"2025-06-20T11:20:56.000Z","dependencies_parsed_at":"2024-03-20T18:01:50.589Z","dependency_job_id":null,"html_url":"https://github.com/dynamiclu/Langchain-ChatBI","commit_stats":null,"previous_names":["dynamiclu/langchain-chatbi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dynamiclu/Langchain-ChatBI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2FLangchain-ChatBI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2FLangchain-ChatBI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2FLangchain-ChatBI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2FLangchain-ChatBI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamiclu","download_url":"https://codeload.github.com/dynamiclu/Langchain-ChatBI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2FLangchain-ChatBI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263540975,"owners_count":23477454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baichuan","bge-large-en","chatglm","faiss","langchain","python3","qianwen","rag","text2vec"],"created_at":"2025-06-01T21:10:36.541Z","updated_at":"2025-07-04T12:32:11.979Z","avatar_url":"https://github.com/dynamiclu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Langchain-ChatBI \n\n## 介绍\n[_READ THIS IN ENGLISH_](README_en.md)\n\n一种利用 [Langchain](https://github.com/hwchase17/langchain) 框架和本地向量库实现的对话式BI，它的目标是帮助用户寻找、理解数据知识，并能够分析数据、洞察结果，通过自然语言对话，降低数据分析的门槛。\n\n该项目可以实现本地化部署，可启动本地大模型([ChatGLM-6B](https://github.com/THUDM/ChatGLM-6B) )，也可用HTTP调用百川和通义千问大模型。本项目利用大模型的语言理解能力，识别用户的BI意图，利用指标匹配，解决对话式BI如何确保数据准确的难点。\n![](img/introduce.jpg)\n## 部署\n\n### 1. 环境配置\n\n+ 确保你的机器安装了 Python 3.8 - 3.11\n```\n$ python3 --version\nPython 3.10.0\n```\n\n```shell\n# 拉取仓库\n$ git clone https://github.com/dynamiclu/Langchain-ChatBI.git\n\n# 进入目录\n$ cd Langchain-ChatBI\n\n# 安装全部依赖\n$ pip3 install -r requirements.txt \n```\n### 2. 模型下载\n   + 向量模型\n    \n```python\n# bge-large-en-v1.5 下载\nfrom modelscope import snapshot_download\nmodel_dir = snapshot_download('AI-ModelScope/bge-large-en-v1.5')\n\n#text2vec 下载\nfrom modelscope import snapshot_download\nmodel_dir = snapshot_download('Jerry0/text2vec-large-chinese')\n```\n+ 大模型\n```python\n#chatglm2-6b-int4 下载\nfrom modelscope import snapshot_download\nmodel_dir = snapshot_download('ZhipuAI/chatglm2-6b-int4')\n```\n\n### 3. 启动Gradio\n```shell\n# 启动Gradio\n$ python3 main_webui.py\n```\n### 4. 示例\n![](img/example.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamiclu%2Flangchain-chatbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamiclu%2Flangchain-chatbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamiclu%2Flangchain-chatbi/lists"}