Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploaded file can not be found #443

Open
liam1985 opened this issue Nov 19, 2024 · 1 comment
Open

uploaded file can not be found #443

liam1985 opened this issue Nov 19, 2024 · 1 comment

Comments

@liam1985
Copy link

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
@liqul
Copy link
Contributor

liqul commented Nov 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants