Faiss (CPU) bindings for Java
To add a dependency on JFaiss-CPU using Maven, use
<dependency>
<groupId>com.github.ramanrajarathinam</groupId>
<artifactId>JFaiss-CPU</artifactId>
<version>1.0.0</version>
</dependency>
- JDK v1.8
- Apache Maven v3.6.3
- Docker v19.03.12
Run the test cases
mvn clean test -Dtest=FaissTestRunner
Creating a JAR
mvn package
Install faiss and generate required Java files
git clone https://github.com/RamanRajarathinam/JFaiss-CPU.git
cd JFaiss-CPU
git submodule update --init
docker build -t jfaiss-source .
This will generate required .java
files from swigfaiss.swig
- Publish to mvn
- GPU support