private-gpt
private-gpt copied to clipboard
chromadb.errors.NoIndexException: Index not found, please create an instance before querying
Dear guys, I just tried to implement my private gpt in collab, and after I implement the code !python /content/drive/MyDrive/my-git-repo/privateGPT.py
and it goes this error after I enter the question in query:
File "/usr/local/lib/python3.10/dist-packages/chromadb/db/index/hnswlib.py", line 240, in get_nearest_neighbors raise NoIndexException( chromadb.errors.NoIndexException: Index not found, please create an instance before querying
Does someone have any idea to solve this ? Thanks a lot!!!
Environment
- OS / hardware: collab
- Python version [e.g. 3.10.3]
This could be because your index was not loaded successfully. Was your ingest.py successful?
I had this same problem today, it happened to me when I called the script from another location. Navigate to where you have the installation and you will see that the ingest works fine.
https://github.com/maozdemir/privateGPT-colab
https://github.com/maozdemir/privateGPT-colab
Thanks for your suggestion! But I found some error when loading this koala-7B-GGML package
Thanks again!!
This could be because your index was not loaded successfully. Was your ingest.py successful? Thank you so much for your suggestion ! It seems succesful to load the ingest.py ! still do not know where the problems are
I had this same problem today, it happened to me when I called the script from another location. Navigate to where you have the installation and you will see that the ingest works fine.
Thanks for your suggestions! But seems the ingest.py work fine with right location?
And here is my constants.py file
Thanks again!
This could be because your index was not loaded successfully. Was your ingest.py successful? I just found that there seems an error detected in my ingest.py, seems the "Import "constants" could not be resolvedPyright(reportMissingImports)", but I do not know why it happended. Do you have any ideas? Thanks a lot!!
And here is my constants.py file
Thanks a lot!!