instant-distance  by djc

Rust library for fast approximate nearest neighbor search

created 4 years ago
330 stars

Top 84.0% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This Rust library provides a fast, pure-Rust implementation of the Hierarchical Navigable Small Worlds (HNSW) algorithm for approximate nearest neighbor (ANN) searching. It is designed for developers needing efficient similarity search capabilities, particularly for use cases like word vector indexing or finding closest points in large datasets.

How It Works

Instant Distance leverages the HNSW graph-based indexing structure, which allows for efficient querying by navigating through layers of interconnected nodes. This approach offers a good trade-off between search speed and accuracy for ANN problems, outperforming brute-force methods on large datasets. The implementation is written entirely in Rust, aiming for performance and memory safety.

Quick Start & Requirements

  • Primary install: cargo add instant-distance
  • Prerequisites: Rust toolchain.
  • Example usage and testing instructions are provided in the README.

Highlighted Details

  • Pure Rust implementation of HNSW.
  • Powers backend services for Instant Domain Search.
  • Supports Euclidean distance metric.

Maintenance & Community

  • The project is maintained by djc.
  • No explicit community links (Discord/Slack) or roadmap are provided in the README.

Licensing & Compatibility

  • The README does not explicitly state a license. This is a critical omission for adoption decisions.

Limitations & Caveats

The absence of a declared license is a significant blocker for adoption, especially for commercial or closed-source projects. Further investigation into the licensing status is required.

Health Check
Last commit

3 weeks ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
0
Star History
7 stars in the last 90 days

Explore Similar Projects

Starred by John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), Mike McNeil Mike McNeil(Author of Sails.js; Cofounder of Fleet), and
10 more.

meilisearch by meilisearch

0.2%
53k
Search engine API for integrating AI-powered hybrid search
created 7 years ago
updated 2 days ago
Feedback? Help us improve.