TaskWeaver icon indicating copy to clipboard operation
TaskWeaver copied to clipboard

uploaded file can not be found

Open liam1985 opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug I try to upload an excel to calcuate its line number. The file uploaded is not found, when the code generated by the code generator is executed. I added print statements within code in order to trace the problem, and I found the file is saved in the path "/data/opensource/TaskWeaver/project/workspace/sessions/20241119-110543-c97f547c/cwd/unfold_users_sft_answer_0.xlsx". But the output from the planner believe the excel is under the path "files/unfold_users_sft_answer_0.xlsx".

Screenshots Image Image Image

Environment Information (please complete the following information):

  • OS: ubuntu22.04
  • Python Version 3.10
  • LLM that you're using: qwen2.5-72B-Instruct

liam1985 avatar Nov 19 '24 11:11 liam1985

Image Image

I was trying to reproduce your issue, but the agent seemed work as expected. Could you try again to see if the agent always haullucinate a wrong file path? In the prompt, the agent is asked to load a file given its name as we have put it under the current working directory. The LLM is responsible to generate the right code to load the file. But from your screenshots, the LLM didn't read the file from CWD, but got a wrong file path instead.

liqul avatar Nov 20 '24 04:11 liqul