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

Broken file description assigner? #51

Open
CentillionJinx opened this issue Aug 15, 2024 · 3 comments
Open

Broken file description assigner? #51

CentillionJinx opened this issue Aug 15, 2024 · 3 comments

Comments

@CentillionJinx
Copy link

CentillionJinx commented Aug 15, 2024

image
image

Repeat of the same file, well over 20+ times before moving on to the next file. Is it just refining it's description or?

@CentillionJinx
Copy link
Author

On top of the above query, ill like to add the following too:

image

What may be the issue here? too many requests? or?

@joacocojom
Copy link

joacocojom commented Aug 16, 2024

Having the same issue here but only with pdf files. If i convert my pdf files in .txt it works properly. Would be nice to know why Llama-fs is struggling with pdf files.

@CentillionJinx
Copy link
Author

image

some error I captured:

FastAPI

Key Error Information:

File: "/home/haveyoutried/llama-fs/src/loader.py"
Line: 22
summaries = await get_summaries(doc_dicts)
Line: 193
summaries = await asyncio.gather(...)
Line: 184
return await summarize_document({"content": doc.text, **doc.metadata}, client)
Line: 122
summary = json.loads(chat_completion.choices[0].message.content)
Error: UnboundLocalError: cannot access local variable 'chat_completion' where it is not associated with a value

Potential Problem Area:

The error suggests a problem within the summarize_document function, specifically on line 122.
It appears the code is trying to access the chat_completion variable before it has been assigned a value.
This likely indicates an issue with the language model API call or the processing of its response.

Recommended next steps:

  1. Inspect the summarize_document function (line 122) in /home/haveyoutried/llama-fs/src/loader.py.
  2. Verify that the language model API call is functioning correctly and returning a valid response.**
  3. Ensure the response from the API is being properly parsed and assigned to the chat_completion variable.

This information should help the program owner quickly pinpoint the source of the error and begin debugging.

Application (NPM)

APPIMAGE env is not defined, current application is not an AppImage
libva error: vaGetDriverNames() failed with unknown libva error
[6561:0816/161946.214091:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[6561:0816/161946.214120:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)

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