zhouyonglong / hnswlib

Java library for approximate nearest neighbors search using Hierarchical Navigable Small World graphs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Hnswlib

Work in progress java implementation of the the Hierarchical Navigable Small World graphs (HNSW) algorithm for doing approximate nearest neighbour search.

The index is thread safe, serializable, supports adding items to the index incrementally and has experimental support for deletes.

It's flexible interface makes it easy to apply it to use it with any type of data and distance metric.

The following distance metrics are currently pre-packaged :

  • bray curtis dissimilarity
  • canberra distance
  • correlation distance
  • cosine distance
  • euclidean distance
  • inner product
  • manhattan distance

It comes with spark integration, pyspark integration and a scala wrapper that should feel native to scala developers

To find out more about how to use this library take a look at the hnswlib-examples module or browse the documentation in the readme files of the submodules

Sponsors

YourKIT logo

YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

About

Java library for approximate nearest neighbors search using Hierarchical Navigable Small World graphs

License:Apache License 2.0


Languages

Language:Java 37.6%Language:Scala 37.1%Language:Jupyter Notebook 19.5%Language:Python 5.8%