Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1000 Bytes

README.md

File metadata and controls

56 lines (40 loc) · 1000 Bytes

JFaiss-CPU (Linux only)

Faiss (CPU) bindings for Java

Adding JFaiss-CPU to you build

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>

Requirement

  • JDK v1.8
  • Apache Maven v3.6.3
  • Docker v19.03.12

Build JAR (maven)

Run the test cases

mvn clean test -Dtest=FaissTestRunner

Creating a JAR

mvn package

Building from source (docker)

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

To-do

  • Publish to mvn
  • GPU support

Reference