Annoy (Approximate Nearest Neighbors Oh Yeah) is a C++ library with Python bindings to search for points in space that are close to a given query point. It also creates large read-only file-based data structures that are mmapped into memory so that many processes may share the same data. There are some other libraries to do nearest neighbor search. Annoy is almost as fast as the fastest libraries, (see below), but there is actually another feature that really sets Annoy apart: it has the ability to use static files as indexes. In particular, this means you can share index across processes. Annoy also decouples creating indexes from loading them, so you can pass around indexes as files and map them into memory quickly. Another nice thing of Annoy is that it tries to minimize memory footprint so the indexes are quite small.

Features

  • If you want to find nearest neighbors and you have many CPU's, you only need to build the index once
  • You can also pass around and distribute static files to use in production environment
  • Any process will be able to load (mmap) the index into memory and will be able to do lookups immediately
  • After running matrix factorization algorithms, every user/item can be represented as a vector in f-dimensional space
  • Build index on disk to enable indexing big datasets that won't fit into memory
  • Lets you share memory between multiple processes

Project Samples

Project Activity

See All Activity >

Categories

Storage

License

Apache License V2.0

Follow Annoy

Annoy Web Site

Other Useful Business Software
Run applications fast and securely in a fully managed environment Icon
Run applications fast and securely in a fully managed environment

Cloud Run is a fully-managed compute platform that lets you run your code in a container directly on top of Google's scalable infrastructure.

Run frontend and backend services, batch jobs, deploy websites and applications, and queue processing workloads without the need to manage infrastructure.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Annoy!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ Storage Software

Registered

2021-06-30