-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
HNSWLib not compatible with 0.0.96 #1764
Comments
This was fixed in the interim by downgrading to version 0.0.75. Will there be any fix for this? |
Also facing the same error |
@gregorym were you able to fix it or just downgraded for now? |
I havent' tried yet but I also found this #943 |
Best I can tell the version of HNSWLib used hasn't changed - can you give me a bit more info about your setup? |
I'm experiencing the same thing, and I've debugged the line where the error is happening. You can see that is throwing a new Exception and ignoring the orignal one (of the previous line). So the original cause of the issue is hidden. in MY case (which might not be everybody's case) the actual error that is causing this is:
So I would ask |
Agree we should log the error - want to open a PR? Otherwise I can add it when I get a minute. |
Is there a known combination of langchain and hnswlib that works on lambda? With hnswlib-node 1.4.2 and langchain downgraded to 0.0.75 I get the "Please install hnswlib-node as a dependency with, e.g. With hnswlib-node 1.4.2 and langchain 0.0.105 the error is slightly different: "Could not import hnswlib-node. Please install hnswlib-node as a dependency with, e.g. |
I had the same on Node |
how to you install manually? |
The usual $ sudo apt-get install -y build-essential gcc python3 make |
I have the same issue with node versions 18.18.2 - 20.9.0 on MacOS edit: #943 (comment) this worked for me :) |
Hi, @shawnesquivel, I'm helping the langchainjs team manage their backlog and am marking this issue as stale. It seems that the issue you raised regarding the compatibility problem with HNSWLib-node library and version 0.0.96 of LangChain has not been resolved yet. Several users, including gregorym, matiasmm, and DutchPrince, reported experiencing the same issue. There were discussions around temporary workarounds such as downgrading LangChain or manually installing hnswlib-node, but no official resolution has been provided. Could you please confirm if this issue is still relevant to the latest version of the langchainjs repository? If it is, please let the langchainjs team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and contribution to the langchainjs community. |
Trying to use HNSWLib-node
Error message:
With LangChain 0.0.96
The text was updated successfully, but these errors were encountered: