Neighbor
Ruby gem for approximate nearest neighbor search that can integrate with pgvector and other backends to power vector similarity search in Ruby applications.
About this tool
Neighbor
Category: SDKs & Libraries
Website: https://github.com/ankane/neighbor
Ecosystem: Ruby, Rails
Overview
Neighbor is a Ruby gem that adds approximate nearest neighbor (ANN) and vector similarity search to Rails applications. It integrates with multiple database backends, including pgvector, to enable efficient vector-based querying directly from Ruby.
Features
-
Nearest neighbor search for Rails
- Provides high-level Ruby/Rails interfaces for performing nearest neighbor and similarity searches.
-
Database backend support
- Postgres
- Supports the
cubeextension. - Supports the
pgvectorextension for vector similarity search.
- Supports the
- MariaDB 11.8
- Native support for nearest neighbor search on this version.
- MySQL 9 (experimental)
- Nearest neighbor searching supported when using HeatWave (experimental status).
- SQLite (experimental)
- Supports vector search via
sqlite-vec.
- Supports vector search via
- Postgres
-
Additional ecosystem integrations
- Companion libraries for other storage backends:
- Redis via
neighbor-redis. - S3-based vectors via
neighbor-s3.
- Redis via
- Companion libraries for other storage backends:
-
Ruby gem packaging
- Distributed as a standard Ruby gem for easy inclusion in Rails and other Ruby applications.
-
Open-source licensing
- Licensed under the MIT license.
Pricing
Neighbor is open source under the MIT license and can be used free of charge.
Loading more......
Information
Categories
Tags
Similar Products
6 result(s)iRangeGraph is an ANN indexing approach and accompanying implementation for range-filtering nearest neighbor search. It provides a specialized graph-based index that supports vector similarity search under range constraints, making it directly useful as a component or reference implementation for advanced vector database indexing and retrieval.
NSG is an approximate nearest neighbor search algorithm based on a sparse navigable graph structure designed for high-dimensional vector similarity search. The reference implementation provides a graph-based ANN index that can be integrated into custom vector retrieval systems.
Reconfigurable Inverted Index (Rii) is a research project and open-source library for approximate nearest neighbor and similarity search over high-dimensional vectors. It focuses on flexible, reconfigurable inverted index structures that support efficient vector search, making it directly relevant as a vector-search engine component for AI and multimedia retrieval applications.
RTNN is a research prototype system and codebase that accelerates high-dimensional nearest neighbor search using hardware ray tracing units on modern GPUs. It targets vector similarity search workloads common in AI applications, exploring ray-tracing hardware as an alternative acceleration path to traditional CPU- or CUDA-based ANN indexes.
FAISS (Facebook AI Similarity Search) is a popular open-source library for efficient similarity search and clustering of dense vectors. Developed by Facebook/Meta, it supports billions of vectors and is widely used to power vector search engines and databases, especially where raw speed and scalability are needed.
NMSLIB is an efficient similarity search library and toolkit for high-dimensional vector spaces, supporting a variety of indexing algorithms for vector database use cases.