Open javiersorucol opened 1 year ago
Hi, I believe the Llama Index library introduced breaking changes. Try installing llama-index==0.4.20
.
I've modfied the llama-index version:
Name: llama-index
Version: 0.4.20
Summary: Interface between LLMs and your data.
Home-page: https://github.com/jerryjliu/gpt_index
Author:
Author-email:
License: MIT
Location: /home/javi/.local/lib/python3.10/site-packages
Requires: dataclasses-json, langchain, nltk, numpy, openai, pandas, tenacity, tiktoken, transformers
Required-by:
But I still get the same issue:
ERROR:server:Exception on /index [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/javi/Desktop/work/rdf-qa/./server.py", line 28, in upload_and_index
index = GPTSimpleVectorIndex(document)
File "/usr/local/lib/python3.10/dist-packages/llama_index/indices/vector_store/vector_indices.py", line 94, in __init__
super().__init__(
File "/usr/local/lib/python3.10/dist-packages/llama_index/indices/vector_store/base.py", line 58, in __init__
super().__init__(
File "/usr/local/lib/python3.10/dist-packages/llama_index/indices/base.py", line 56, in __init__
raise ValueError(
ValueError: The constructor now takes in a list of Node objects. Since you are passing in a list of Document objects, please use `from_documents` instead.
INFO:werkzeug:127.0.0.1 - - [04/Apr/2023 16:59:25] "POST /index HTTP/1.1" 500 -
Hi! I'm trying to test this using the exmple.nt file, when I try to do so in the Webapp I get the following error:
After some review, I've found that this is due the Webapp is receiving response 500, therefore, I've checked only the server with the following code:
The received answer is:
And the server shows the following error:
Am I doing something wrong? or maybe missing the version of some package? The received file is properly being stored in the uploads folder, but the error seems to be triggered on the following line: