暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

DB-GPT v0.5.10 版本更新,发布金融财报新分析案例

EosphorosAI 2024-07-30
436

 

亲爱的 DB-GPT 社区伙伴们,DB-GPT v0.5.10 版本发布啦,接下来我们一起看看该版本带来哪些变化吧:


 新特性 


🌟  dbgpts 发布金融财报的分析案例

借助大模型进行金融财报分析正在成为垂直领域的一个热门落地应用。大模型不仅能够比人类更准确地理解复杂的财务规则,还能基于专业知识输出合理的分析结果。通过AWEL
构建金融财报知识构建workflow和财报智能答疑workflow app, 可以帮助用户回答财报的基础信息问题,财报指标计算分析问题以及财报内容分析问题。

  • 财报基础信息回答

可以回答上市公司的基础信息,包括公司法定代表人,注册地址,联系邮箱,股票名称,股票代码等基础信息。

  • 财报指标计算

可以计算上市公司财务指标,包括公司法资产负债率,营业成本率,毛利率,营业利润率,流动比率。

也可以计算公司研发投入指标:包括技术人员占比,财务人员占比,销售人员占比,企业硕士人员占比等。

  • 财报内容分析

可以对公司财报内容进行分析,包括研发投入情况分析,公司注册变更情况等问题进行分析。

使用步骤:

1. 变更表结构

    USE dbgpt;
    ALTER TABLE knowledge_space
    ADD COLUMN `domain_type` varchar(50) null comment 'space domain type' after `vector_type`;
    复制
    2. 更新python依赖
      pip install pdfplumber fuzzywuzzy
      复制
      3. 从dbgpts安装知识构建workflow和财报问答机器人workflow
        # install poetry
        pip install poetry
        # install financial report knowledge process pipeline workflow
        dbgpt app install financial-report-knowledge-factory
        # install financial report chat pipeline workflow
        dbgpt app install financial-robot-app
        复制
        4. 下载预训练embedding模型,并在.env文件中进行设置
          git clone https://www.modelscope.cn/models/AI-ModelScope/bge-large-zh-v1.5
          复制
            #*******************************************************************#
            #** FINANCIAL CHAT Config **#
            #*******************************************************************#
            FIN_REPORT_MODEL=/app/DB-GPT/models/bge-large-zh-v1.5
            复制
            5. 启动dbgpt_server服务后,创建知识空间,选择金融领域

            6. 上传公司金融年报/财报pdf,DB-GPT/docker/examples/fin_report/pdf/,如果想获取更多的pdf数据
              git clone http://www.modelscope.cn/datasets/modelscope/chatglm_llm_fintech_raw_dataset.git
              复制


              🌟  支持更多的运行dbgpts的方式

              支持本地模型运行dbgpts
              ,无需启动 DB-GPT 服务也可以运行安装的 `dbgpts`

              更新对话应用

                dbgpt app install awel-flow-simple-streaming-chat -U
                复制
                本地对话模式运行awel-flow-simple-streaming-chat
                  dbgpt run flow --local chat \
                  --name awel-flow-simple-streaming-chat \
                  --model "gpt-3.5-turbo" \
                  --messages "hello" \
                  --stream
                  复制

                  本地命令模式awel-flow-simple-streaming-chat

                    dbgpt run flow --local cmd \
                    --name awel-flow-simple-streaming-chat \
                    -d '
                    {
                    "model": "gpt-3.5-turbo",
                    "messages": "hello",
                    "stream": true
                    }
                    '
                    复制

                    本地模式执行本地 AWEL 文件:

                      dbgpt run flow --local --file simple_chat_app.py \
                      chat \
                      --name dbgpts_simple_chat_app \
                      --model "gpt-3.5-turbo" \
                      --messages "hello"
                      复制

                      更多 dbgpts 细节可以查看文档:https://docs.dbgpt.site/docs/next/dbgpts/introduction

                      🌟  支持llama3.1
                      模型

                        LLM_MODEL=meta-llama-3.1-8b-instruct
                        复制

                        🌟  支持internlm2.5
                        ,codegeex4-all-9b
                        模型

                        🌟  集成OpenTelemetry
                        可观测工具

                        1.安装可观测模块

                          pip install -e ".[observability]"
                          复制
                          2.启动可观测服务
                            docker run --rm --name jaeger \
                            -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
                            -p 6831:6831/udp \
                            -p 6832:6832/udp \
                            -p 5778:5778 \
                            -p 16686:16686 \
                            -p 4317:4317 \
                            -p 4318:4318 \
                            -p 14250:14250 \
                            -p 14268:14268 \
                            -p 14269:14269 \
                            -p 9411:9411 \
                            jaegertracing/all-in-one:1.58
                            复制
                            3. 在.env文件进行配置
                              TRACER_TO_OPEN_TELEMETRY=True
                              OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4317
                              复制
                              4. 访问 http://localhost:16686


                               Bug 修复 



                              • 解决创建TuGraph
                                子图命名问题

                              • 修复知识库参数context缺少问题

                              • 解决TuGraph
                                构建问题

                              • 解决写日志问题


                                   其他  


                              • 官方英文文档支持多版本 docker 镜像构建,并提供跟随 main 分支更新的 dev
                                版本文档

                              • 官方英文文档支持Blog模块

                                https://docs.dbgpt.site/blog


                               致谢 


                              感谢所有贡献者使这次发布成为可能! 

                              @A-Salty-Fish, @Aries-ckt, @Kain-90, @chenluli, @fangyinc and @shyusi


                              附录
                              01
                               DB-GPT 框架
                              https://github.com/eosphoros-ai/DB-GPT
                              02
                              Text2SQL 微调
                              https://github.com/eosphoros-ai/DB-GPT-Hub
                              03
                               DB-GPT 前端可视化项目
                              https://github.com/eosphoros-ai/DB-GPT-Web
                              04
                               DB-GPT 插件仓库
                              https://github.com/eosphoros-ai/dbgpts
                              05
                               Text2SQL学习资料和前沿跟踪
                              https://github.com/eosphoros-ai/Awesome-Text2SQL
                              06
                               中文官方文档
                              https://www.yuque.com/eosphoros/dbgpt-docs/bex30nsv60ru0fmx
                              07
                               英文官方文档
                              http://docs.dbgpt.site/docs/overview

                              最后修改时间:2024-07-30 10:19:31
                              文章转载自EosphorosAI,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

                              评论