-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
FAISS crashes NestJS app when index doesn't exist #1475
Closed
Comments
CC @ewfian? |
@MarioUnlam @jacoblee93 The exception in the native code is not caught, I will fix it on the faiss-node side, Please assign this issue to me. |
Thank you! |
ewfian
added a commit
to ewfian/langchainjs
that referenced
this issue
Jun 5, 2023
2 tasks
jacoblee93
pushed a commit
that referenced
this issue
Jun 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using langchain and the FAISS integration in a NestJS app, and I noticed that trying to do "FaissStore.load" with a path that doesn't exist results in a hard crash that cannot be catched. The app crashes with the following error:
I'm not entirely sure why this happens, but the crash seems to occur when trying to run "FAISS.read" with a non-existent "faiss.index" file. Checking for the file existence before running that method seems to prevent the crash, although this is just a workaround, as the proper fix should be implemented on the faiss-node side.
In faiss.js, line 105
The text was updated successfully, but these errors were encountered: