Skip to content

raman-r-4978/JFaiss-CPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Faiss bindings for Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages