
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.
Surveys
Loading more......
Information
Websitegithub.com
PublishedDec 30, 2025
Categories
Tags
Similar Products
6 result(s)