Closed kyr0 closed 10 months ago
Nevermind, I found your PR :)) sry, should have looked in the PRs before. Is there anything else to do?
@kyr0 Thank you for your detailed proposal.
We can consider implementing the reconstruct
and merge_from
for a complete equivalent to Python's implementation.
But the build that was just approved last night failed and we have to get it to pass first.
In the next few days, I will sort out the things to do next. And we can discuss it later.
Yeah, cool 👍 Nice to see that the PR looks good now on the other side. Can't wait to use FAISS in my project and port all my code from Python over to TS :)
Please close this issue
Hi,
great project! I'm looking for implementing the FAISS support for langchainjs. I've a bit of a background in writing node native binding modules for Node too and I believe it could be fun focusing on the following subset of features for bridging a currently existing gap and enable langchainjs to support FAISS as well.
Reading the original langchain python code and how FAISS is used there: https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/faiss.py
... I identified the following APIs need to be supported by the binding:
A quick read of the code shows that
reconstruct
andmerge_from
might be missing in the current implementation: https://github.com/ewfian/faiss-node/blob/main/src/faiss.cc#L51Is it fine for you if I "mess with the code" and PR? :) Is there anything I should know regarding missing/broken/"I want to refactor this" things that I shouldn't touch? :)
Once I got it working, I can implement and contribute FAISS support for langchainjs here: https://github.com/hwchase17/langchainjs/tree/main/langchain/src/vectorstores
...which I find is a pretty cool goal :)
Thanks and best, Aron
(and sorry, I couldn't change the label to "enhancement" :))