private-gpt
private-gpt copied to clipboard
python3 ingest.py -> AttributeError: module 'hnswlib' has no attribute 'Index'
Creating new vectorstore
Loading documents from source_documents
Loading new documents: 100%|█████████████████████| 1/1 [00:00<00:00, 172.05it/s]
Loaded 1 new documents from source_documents
Split into 90 chunks of text (max. 500 tokens each)
Creating embeddings. May take some minutes...
Using embedded DuckDB with persistence: data will be stored in: db
Traceback (most recent call last):
File "/root/privateGPT/ingest.py", line 167, in
python3 --version == 3.10.6 hnswlib = 0.7.0 chromadb==0.3.23
can you please provide pip install hnswlib
output?
download and install the "Microsoft C++ Build Tools" from the official Visual Studio website. Here are the steps you can take:
Visit the following URL: https://visualstudio.microsoft.com/visual-cpp-build-tools/.
On the webpage, you should see a "Download" button for the Visual Studio Build Tools. Click on it to initiate the download.
Once the download is complete, run the installer and follow the instructions to install the Microsoft C++ Build Tools.
During the installation process, make sure to select the necessary components for C++ development. This typically includes selecting the "C++ build tools" and any required packages or libraries.
After the installation is complete, try installing the hnswlib package again using pip.