efficient approximate nearest neighbor search algorithm collections library written in Rust .
efficient approximate nearest neighbor search algorithm collections library written in Rust .
[Homepage] [Document] [Examples]
Hora Search Everywhere!
Hora is an approximate nearest neighbor search algorithm (wiki) library. We implement all code in Rust for reliability, high level abstraction and high speeds comparable to C++.
Hora, 「ほら」 in Japanese, sounds like [hōlə], and means Wow, You see! or Look at that!. The name is inspired by a famous Japanese song 「小さな恋のうた」.
** Face-Match [online demo], have a try!**
** Dream wine comments search [online demo], have a try!**
Performant ⚡️
Supports Multiple Languages ☄️
PythonJavascriptJavaGo (WIP)Ruby (WIP)Swift (WIP)R (WIP)Julia (WIP)Supports Multiple Indexes
Portable
WebAssemblyWindows, Linux and OS XIOS and Android (WIP)no_std (WIP, partial)BLASReliability
Rust compiler secures all codeRust for all language libraries such as Python'sSupports Multiple Distances
Dot Product DistanceEuclidean DistanceManhattan DistanceCosine SimilarityProductive ⭐
Rust
in Cargo.toml
[dependencies]
hora = "0.1.1"Python
$ pip install horapyJavascript (WebAssembly)
$ npm i horajsBuilding from source
$ git clone https://github.com/hora-search/hora
$ cargo buildby aws t2.medium (CPU: Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz) more information
Rust example [more info]
…thank @vaaaaanquish for this complete pure Rust image search example, For more information about this example, you can click Pure Rust な近似最近傍探索ライブラリ hora を用いた画像検索を実装する
Python example [more info]
…JavaScript example [more info]
…Java example [more info]
…RmmapHora's implementation is strongly inspired by these libraries.Faiss focuses more on the GPU scenerio, and Hora is lighter than Faiss (no heavy dependencies).Hora expects to support more languages, and everything related to performance will be implemented by Rust.Annoy only supports the LSH (Random Projection) algorithm.ScaNN and Faiss are less user-friendly, (e.g. lack of documentation).Milvus and Vald also support multiple languages, but serve as a service instead of a libraryMilvus is built upon some libraries such as Faiss, while Hora is a library with all the algorithms implemented itselfWe appreciate your participation!
We are glad to have you participate, any contributions are welcome, including documentations and tests.
You can create a Pull Request or Issue on GitHub, and we will review it as soon as possible.
We use GitHub issues for tracking suggestions and bugs.
git clone https://github.com/hora-search/horacargo buildcargo test --libcd examples
cargo runThe entire repository is licensed under the Apache License.
No open issues yet, or sync has not completed.