*As Issue #225 mentioned. It is possible to support faiss as future.
But i do not implement the codec services, because i want to ask for your opinions about this part.
I prefer to use the same interface(saveIndex, init, queryIndex) as same as nmslib's code with the same input parameter. so i do PR #285
i think with the same interface we can support nmslib and faiss in knn plugin at the same time.
Description of changes:
This PR is support Faiss index and Query with the same interface in jni code.
In KNNJNIFaissTests tests, it can do the same logic as KNNIndex and KNNJNITests
We can modified interface code as less as mush.
To build this, we need to build faiss firstly which depends on some external Libs like OpenMP,BLAS etc.
*As Issue #225 mentioned. It is possible to support faiss as future.
But i do not implement the codec services, because i want to ask for your opinions about this part. I prefer to use the same interface(
saveIndex
,init
,queryIndex
) as same as nmslib's code with the same input parameter. so i do PR #285 i think with the same interface we can support nmslib and faiss in knn plugin at the same time.Description of changes:
Faiss
index and Query with the same interface in jni code.KNNJNIFaissTests
tests, it can do the same logic asKNNIndex
andKNNJNITests
build faiss
firstly which depends on some external Libs like OpenMP,BLAS etc.