-
Notifications
You must be signed in to change notification settings - Fork 449
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
Not able to process txt file uploaded #977
Comments
I tried another file book.txt. Somehow, the system delete the file "2024-12-27 19:16:31,758 - file book.txt deleted successfully" 2024-12-27 19:16:31,694 - File path:/Users/pchan3/llm-graph-builder/backend/merged_files/book.txt During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Same mistake. Did you fix it? |
I am waiting for the neo4j grapher builder team to response. |
Hi @peterchanws, not from neo4j, but few things from the logs which caught my attention:
Additionally: |
Thanks, smartwhale8. I installed python-libmagic. Still failed to generate graph. I am wondering when the txt file was deleted: 2024-12-31 08:24:08,745 - File path:/Users/pchan3/llm-graph-builder/backend/merged_files/message-2351.txt |
I tried to generate a graph for a text file uploaded to the Graph Builder app and got a "Failed" status. Below is part of the log in the backend. I successfully generated a graph for web sources in the same environment.
[ERROR]{'message': 'Failed To Process File:message-20.txt or LLM Unable To Parse Content ', 'error_message': 'Chunks are not created for message-20.txt. Please re-upload file and try again.', 'file_name': 'message-20.txt', 'status': 'Failed', 'db_url': 'bolt://localhost:7687', 'failed_count': 1, 'source_type': 'local file', 'source_url': None, 'wiki_query': None, 'logging_time': '2024-12-27 18:49:35 UTC'}
2024-12-27 10:49:35,223 - File Failed in extraction: {'message': 'Failed To Process File:message-20.txt or LLM Unable To Parse Content ', 'error_message': 'Chunks are not created for message-20.txt. Please re-upload file and try again.', 'file_name': 'message-20.txt', 'status': 'Failed', 'db_url': 'bolt://localhost:7687', 'failed_count': 1, 'source_type': 'local file', 'source_url': None, 'wiki_query': None, 'logging_time': '2024-12-27 18:49:35 UTC'}
Traceback (most recent call last):
File "/Users/pchan3/llm-graph-builder/backend/score.py", line 209, in extract_knowledge_graph_from_file
uri_latency, result = await extract_graph_from_file_local_file(uri, userName, password, database, model, merged_file_path, file_name, allowedNodes, allowedRelationship, retry_condition)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pchan3/llm-graph-builder/backend/src/main.py", line 232, in extract_graph_from_file_local_file
return await processing_source(uri, userName, password, database, model, fileName, [], allowedNodes, allowedRelationship, True, merged_file_path, retry_condition)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pchan3/llm-graph-builder/backend/src/main.py", line 313, in processing_source
total_chunks, chunkId_chunkDoc_list = get_chunkId_chunkDoc_list(graph, file_name, pages, retry_condition)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pchan3/llm-graph-builder/backend/src/main.py", line 531, in get_chunkId_chunkDoc_list
raise Exception(f"Chunks are not created for {file_name}. Please re-upload file and try again.")
Exception: Chunks are not created for message-20.txt. Please re-upload file and try again.
The text was updated successfully, but these errors were encountered: