I cannot ingest documents
I have installed the resquirements.txt Upon running the python ingest.py command, I get the following error:
python ingest.py
Loading documents from /home/computer/Downloads/localGPT-main/SOURCE_DOCUMENTS
Loaded 1 documents from /home/computer/Downloads/localGPT-main/SOURCE_DOCUMENTS
Split into 72 chunks of text
Traceback (most recent call last):
File "/home/computer/.local/lib/python3.10/site-packages/langchain/embeddings/huggingface.py", line 135, in init
from InstructorEmbedding import INSTRUCTOR
File "/home/computer/.local/lib/python3.10/site-packages/InstructorEmbedding/init.py", line 1, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/computer/Downloads/localGPT-main/ingest.py", line 78, in
Any idea?
Heyo,
I think JaxLib doesn't actually have an official Windows variant - pretty sure it's mainly used on Linux/Mac. But you should be able to build the package by installing these files through command line or other methods (i provided a command line copy paste):
py -m pip install jax==0.3.13 https://whls.blob.core.windows.net/unstable/cuda111/jaxlib-0.3.7+cuda11.cudnn82-cp39-none-win_amd64.whl
There could be a version mismatch, but it's worth a try! The .whl file contains the precompiled Windows version of JaxLib.
I am using Arch linux and not windows.
I did install jax==0.3.13, but its still spewing out the same error.
Sorry about that, bad morning, I think I superimposed my issue onto your issue, but I fixed my issue.
Anyways, you're missing sentence_transformers, try to install that and try again.
@knminhaz Did you find a solution?
pip install instructorembeddings sentence-transformers
pip install instructorembeddings sentence-transformers
ERROR: Could not find a version that satisfies the requirement instructorembeddings (from versions: none) ERROR: No matching distribution found for instructorembeddings
And still doesn't ingest
you need pip install InstructorEmbedding with capital letters.
The same thing happens here, whether you type pip install instructorembeddings sentence-transformers or pip install InstructorEmbeddings sentence-transformers appears this:
ERROR: Could not find a version that satisfies the requirement instructorembeddings (from versions: none)
ERROR: No matching distribution found for instructorembeddings
It worked for us by putting conda install -c conda-forge sentence-transformers and then python -m pip install -r requirements.txt again
Great I think that will help future readers of this page. Thanks for sharing.