5 Star 0 Fork 0

bytesc / simple-data-co-pilot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

simple-data-co-pilot

自然语言查询数据表 数据来源: GDP(现价美元): https://data.worldbank.org.cn/indicator/NY.GDP.MKTP.CD GDP增长率(年百分比): https://data.worldbank.org.cn/indicator/NY.GDP.MKTP.KD.ZG 按购买力平价(PPP)衡量的GDP(现价国际元): https://data.worldbank.org.cn/indicator/NY.GDP.MKTP.PP.CD

效果展示

界面效果

数据展示

如何运行

获取apikey

从阿里云获取 qwen 大语言模型的 api-key

阿里云dashscope

保存 api-keyapi_keys/api_key.txt

安装依赖

pip install -r requirements.txt

运行

python data-co-pilot.py

以下是一些问题的例子

查询2019,2020年全球的gdp数据
查询法国的gdp情况
美国的gdp历史?
查询日本从2000到2010年的gdp
查询美国和中国2000到2010年的gdp数据

工作流程

代码提交流程

关于仓库权限

  • 所有人只能向自己的 dev 分支提交代码
  • 可以对自己的 dev 分支使用 push -f
  • master 分支(用于统计贡献)的修改,需要通过提交 pull request 并通过审核

关于代码工作的一些规则

满足以下要求的 pull request 才能通过审核

  • 谁后提交,谁负责处理冲突
  • 每个提交的 commit 版本必须是可运行(可被测试)的
  • 每个提交的 commit 版本必须和上一个版本有明显区别(新增功能或修复bug等)
  • commit 的注释要体现更改内容

参考 git 命令

# 检查仓库情况
git status
git add .
# 提交更改
git commit -m "在readme文件中添加代码工作规范"

# 获取远程仓库最新内容
git fetch --all
# 合并
# 这一步如果出现冲突,手动解决冲突,回到开头
git merge gitee/master
# 推送到自己的远程 dev 分支
git push gitee master:dev-rcy
MIT License Copyright (c) 2024 bytesc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

自然语言查询数据表 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/bytesc/simple-data-co-pilot.git
git@gitee.com:bytesc/simple-data-co-pilot.git
bytesc
simple-data-co-pilot
simple-data-co-pilot
master

搜索帮助