DB-GPT 本地部署数据分析场景
创始人
2025-01-16 13:03:25
0次

1.源码安装

  • 版本:0.5.7
  • python版本:3.10.12
  • llm api: yi model

https://github.com/eosphoros-ai/DB-GPT

官方文档:

DB-GPT · 语雀

git:(main) ✗ git clone https://github.com/eosphoros-ai/DB-GPT.git

2.复制配置文件

cp .env.template  .env

修改配置文件:

我这里用的yi api

# 修改下面代码 LLM_MODEL=yi_proxyllm  ## Yi Proxyllm, https://platform.lingyiwanwu.com/docs YI_MODEL_VERSION=yi-34b-chat-0205 YI_API_BASE=https://api.lingyiwanwu.com/v1 YI_API_KEY=替换你的KEY

3. 拉取模型

(venv) ➜  DB-GPT git:(main) ✗ mkdir models & cd models  (venv) ➜  models git:(main) ✗ git clone https://huggingface.co/GanymedeNil/text2vec-large-chinese  (venv) ➜  models git:(main) ✗ du -d 1 -BM 6167M	./text2vec-large-chinese 6167M	. (venv) ➜  models git:(main) ✗  

如果被屏蔽,用国内镜像下载:

https://hf-mirror.com/

4.安装依赖包

(venv) ➜  models git:(main) ✗ pip install  -e ".[openai]"                                                                                        

5.本地脚本启动

(venv) ➜  DB-GPT git:(main) ✗ python dbgpt/app/dbgpt_server.py   =========================== WebServerParameters ===========================  host: 0.0.0.0 port: 5670 daemon: False controller_addr: None model_name: yi_proxyllm share: False remote_embedding: False remote_rerank: False log_level: INFO light: False log_file: dbgpt_webserver.log tracer_file: dbgpt_webserver_tracer.jsonl tracer_storage_cls: None disable_alembic_upgrade: False awel_dirs: None default_thread_pool_size: None  ======================================================================   , llm client class:  INFO:     127.0.0.1:40706 - "POST /api/controller/models HTTP/1.1" 200 OK INFO:     127.0.0.1:40720 - "POST /api/controller/models HTTP/1.1" 200 OK begin run _add_app_startup_event 2024-06-04 21:04:07 nile dbgpt.datasource.manages.connect_config_db[2963527] INFO Result:  /home/nile/data2/agents_wk/DB-GPT/venv/lib/python3.10/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_name" has conflict with protected namespace "model_".  You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.   warnings.warn( 2024-06-04 21:04:08 nile dbgpt.storage.vector_store.connector[2963527] INFO VectorStore: 2024-06-04 21:04:08 nile chromadb.api.segment[2963527] INFO Collection langchain is not created. 2024-06-04 21:04:08 nile dbgpt.storage.vector_store.chroma_store[2963527] INFO Check persist_dir: /home/nile/data2/agents_wk/DB-GPT/pilot/data/rag_flow_profile.vectordb 2024-06-04 21:04:08 nile dbgpt.rag.summary.db_summary_client[2963527] INFO Vector store name rag_flow_profile exist 2024-06-04 21:04:08 nile dbgpt.rag.summary.db_summary_client[2963527] INFO initialize db summary profile success... 2024-06-04 21:04:08 nile dbgpt.rag.summary.db_summary_client[2963527] INFO db summary embedding success 

6.web

7.测试数据下载

链接: https://pan.baidu.com/s/1ZILia9paCRd_HN7zk8s1xQ?pwd=2cki

提取码: 2cki 
 

8.导入数据到mysql

9.分析数据

相关内容

热门资讯

一分钟揭秘辅助!微乐小程序游戏... 一分钟揭秘辅助!微乐小程序游戏破解器,微乐家乡小程序修改器-一直真的有辅助挂1)微乐小程序游戏破解器...
技术分享开挂!微信小程序微乐辅... 技术分享开挂!微信小程序微乐辅助器,微乐贵阳捉鸡麻将能不能开挂-一贯是真的有辅助工具在进入微信小程序...
科技介绍开挂!微乐小程序家乡自... 科技介绍开挂!微乐小程序家乡自建房辅助app,微乐自建房脚本如何下载-其实是有辅助神器1、超多福利:...
重大通报辅助!微信小程序微乐辅... 重大通报辅助!微信小程序微乐辅助器教程,微乐小程序微乐家乡辅助器-都是真的有辅助插件重大通报辅助!微...
玩家必备教程辅助!微信小程序游... 玩家必备教程辅助!微信小程序游戏破解微乐游戏,微信小程序微乐安徽辅助苹果-确实有辅助脚本1、完成微信...
科技分享开挂!微乐手游辅助脚本... 科技分享开挂!微乐手游辅助脚本平台,微乐小程序辅助器免费-其实有辅助神器一、微乐手游辅助脚本平台可以...
发现玩家辅助!微乐小程序辅助工... 您好,微乐小程序辅助工具这款游戏可以开挂的,确实是有挂的,需要了解加去威信【136704302】很多...
推荐一款透视挂!微乐小程序家乡... 推荐一款透视挂!微乐小程序家乡自建房辅助app,微乐河南小程序微乐辅助脚本-原来存在有辅助挂微乐小程...
一起来探讨开挂!微乐小程序开挂... 一起来探讨开挂!微乐小程序开挂黑科技,微乐自建房免费黑科技推荐-本来真的是有辅助脚本小薇(辅助器软件...
2024教程辅助!微信小程序微... 2024教程辅助!微信小程序微乐辅助免费,微乐小程序辅助教程-都是是真的有辅助挂1、点击下载安装,微...