Closed asilvas closed 11 months ago
Now it is just wraps the faiss
api, if you have a good way, please let me know.
Suddenly remembered: In langchain Python, the serialize_to_bytes
was implemented. If faiss-node can also have a similar solution, the feature could also be ported to langchianjs
My python is terrible, but I'll give it a look thanks.
Resolved by https://github.com/ewfian/faiss-node/pull/40
Happy to contribute, just wanted to know if there was a logical way to accomplish this?
add
is very expensive as it performs an encode, which adds up fast. Basically looking for similar efficiency to that of read/write from disk but from memory/buffers.