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

FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/../GPT_INDEXES/None/docstore.json' #11

Open
abhinandan1602 opened this issue Jul 3, 2023 · 0 comments

Comments

@abhinandan1602
Copy link

abhinandan1602 commented Jul 3, 2023

Whenever I submit a prompt after attaching a pdf file I get this error

FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/avashish/GPT_INDEXES/None/docstore.json'
Traceback:
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "C:\Users\avashish\local_llama2.py", line 143, in
query_index(query_u=user_input)
File "C:\Users\avashish\local_llama2.py", line 86, in query_index
storage_context = StorageContext.from_defaults(persist_dir=f"{PATH_TO_INDEXES}/{pdf_to_use}")
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\llama_index\storage\storage_context.py", line 75, in from_defaults
docstore = docstore or SimpleDocumentStore.from_persist_dir(
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\llama_index\storage\docstore\simple_docstore.py", line 57, in from_persist_dir
return cls.from_persist_path(persist_path, namespace=namespace, fs=fs)
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\llama_index\storage\docstore\simple_docstore.py", line 75, in from_persist_path
simple_kvstore = SimpleKVStore.from_persist_path(persist_path, fs=fs)
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\llama_index\storage\kvstore\simple_kvstore.py", line 75, in from_persist_path
with fs.open(persist_path, "rb") as f:
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\fsspec\spec.py", line 1241, in open
f = self._open(
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\fsspec\implementations\local.py", line 184, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\fsspec\implementations\local.py", line 315, in init
self._open()
File "C:\Users\avashish\AppData\Local\anaconda3\lib\site-packages\fsspec\implementations\local.py", line 320, in _open
self.f = open(self.path, mode=self.mode)

@abhinandan1602 abhinandan1602 changed the title FileNotFoundError FileNotFoundError Jul 3, 2023
@abhinandan1602 abhinandan1602 changed the title FileNotFoundError FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/../GPT_INDEXES/None/docstore.json' Jul 3, 2023
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

1 participant