Coder Social home page Coder Social logo

Comments (12)

zwq2018 avatar zwq2018 commented on July 26, 2024

当天的数据要在晚上才能更新,你换个request

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024

输出可孚医疗上周三的股价

2023-07-07 19:13:54
Traceback (most recent call last):
  File "/root/Data-Copilot/main.py", line 381, in <module>
    output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
  File "/root/Data-Copilot/main.py", line 215, in run
    call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)

from data-copilot.

zwq2018 avatar zwq2018 commented on July 26, 2024

请不要用周三这种词,因为时区问题,我们的周三就是美国的周二。这样会引起LLMs误会。请直接用日期,例如输出可孚医疗7月4日股价

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024
===============================Intent Detecting===========================================
2023-07-07 21:10:24
new_instruction: 输出可孚医疗2023年7月4日的股价
===============================Task Planing===========================================
2023-07-07 21:10:26
stock_task : 获取可孚医疗20230704的股价数据
visualization_task : 输出可孚医疗20230704的股价
===============================Tool select and using Stage===========================================
2023-07-07 21:10:29
Traceback (most recent call last):
  File "/root/Data-Copilot/main.py", line 381, in <module>
    output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
  File "/root/Data-Copilot/main.py", line 215, in run
    call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024

version: 2409228
Python 3.10.0
WSL: 1.2.5.0
OS: Ubuntu 20.04 LTS

from data-copilot.

zwq2018 avatar zwq2018 commented on July 26, 2024

我这边测试过是没问题。你到demo里试试应该也是可以的。你可以查下381行输出response是啥

from data-copilot.

zwq2018 avatar zwq2018 commented on July 26, 2024

call_steps, _ = response.split('###') 这句话是把openai回复的response取出来解析,你看看它有没有内容

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024
result_buffer=> {}
output_buffer=> ['result1']
Traceback (most recent call last):
  File "/root/Data-Copilot/main.py", line 388, in <module>
    output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
  File "/root/Data-Copilot/main.py", line 283, in run
    Previous_result[rename] = result_buffer[output_name][1]
KeyError: 'result1'

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024

看起来 prompt 的输出限制不太稳定,有时候能进到

call_steps, _ = response.split('###')

有时候在
for output_name in output_buffer:
这部分就报错

result_buffer=> {'result1': (  stock_code trade_date       open      high       low      close  ...  symbol  stock_name  area  industry  market  list_date
0  301087.SZ   20230705  64.681059  66.18079  64.39212  65.424045  ...  301087        可孚医疗    湖南      医疗保健     创业板   20211025

[1 rows x 18 columns], '可孚医疗20230705的股价数据')}
output_buffer=> ['result1']
response =>
2023-07-07 22:04:00
step1={
 "arg": ["input1"],
 "function": "print",
 "output": "result1",
 "description": "输出可孚医疗20230705的股价"
}
response end

出现错误:

Traceback (most recent call last):
  File "/root/Data-Copilot/main.py", line 388, in <module>
    output, image, df , output_result = run(instruction, send_chat_request_Azure = openai_call, openai_key=openai_key, api_base='', engine='')
  File "/root/Data-Copilot/main.py", line 298, in run
    call_steps, _ = response.split('###')
ValueError: not enough values to unpack (expected 2, got 1)

from data-copilot.

Ice-Hazymoon avatar Ice-Hazymoon commented on July 26, 2024

我使用的是 OpenAI 的 key,tushare 积分 120,每日股票数据接口应该是能用的,但是没一次能调用成功。

from data-copilot.

zwq2018 avatar zwq2018 commented on July 26, 2024

咦 按理说这么简单的request应该还蛮稳定。我刚自己试了几次都正常。你加我17681825398

from data-copilot.

programmermw1986 avatar programmermw1986 commented on July 26, 2024

image
image
获取的stock_data列名好像和代码里面的没有对齐 这个是什么原因

from data-copilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.