awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
nmslib avatar

nmslib/hnsw

0
View on GitHub↗
5,257 星标·831 分支·C++·Apache-2.0·8 次浏览github.com/nmslib/hnswlib↗

Hnsw

该项目是一个 C++ 向量相似度引擎,实现了分层可导航小世界(HNSW)算法。它提供了一个仅包含头文件的库,用于在高维空间中执行近似最近邻搜索,并附带 Python 绑定,将这些索引和搜索功能暴露给数据科学环境。

该引擎利用多层图结构平衡搜索速度和准确性,实现实时嵌入检索和高维相似度搜索。它支持自定义距离度量,以计算各种数学空间中向量之间的相似度。

该系统涵盖了广泛的索引操作,包括增量向量插入以及在不重建索引的情况下标记元素为已删除的能力。它还支持多向量搜索、搜索结果过滤以及基于磁盘的持久化,以保存和重新加载索引状态。

Features

  • Vector Similarity Search - Provides a high-performance engine for similarity search on high-dimensional vector embeddings.
  • Low-Latency Vector Retrieval - Enables low-latency retrieval of the most relevant vectors from large datasets in real-time.
  • Approximate Nearest Neighbor Search - Finds the closest vectors in high-dimensional space by balancing lookup speed and accuracy.
  • Proximity Graph Indexes - Uses a multi-layered proximity graph to efficiently navigate and retrieve approximate nearest neighbors.
  • Vector Indexing - Organizes high-dimensional embeddings into optimized indexes to support efficient semantic retrieval.
  • HNSW Indexes - Implements the Hierarchical Navigable Small World algorithm for fast approximate nearest neighbor search.
  • Vector Distance Metrics - Provides pluggable distance functions to calculate similarity between high-dimensional vectors in various mathematical spaces.
  • Disk-Persistent Data Structures - Implements the ability to serialize the in-memory graph structure to disk for session recovery.
  • Incremental Indexing Engines - Allows for the insertion and modification of vectors without rebuilding the entire index from scratch.
  • Python Vector Index Wrappers - Exposes high-performance C++ vector indexing and search capabilities to Python environments.
  • Search Result Filtering - Restricts search results to specific subsets of elements using labels or boolean logic.
  • Incremental Vector Sync - Supports adding new vectors to the index incrementally without requiring a full rebuild.
  • Header-Only Libraries - Distributed as a header-only C++ library to simplify integration and enable compiler optimizations.
  • Python-C++ Bindings - Provides Python bindings for high-performance C++ vector indexing and search operations.
  • Radius Vector Searches - Supports executing queries using distance thresholds to find all neighbors within a specific radius.
  • Similarity Search - Graph-based method for efficient approximate nearest neighbor search.

Star 历史

nmslib/hnsw 的 Star 历史图表nmslib/hnsw 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

nmslib/hnsw 是做什么的?

该项目是一个 C++ 向量相似度引擎,实现了分层可导航小世界(HNSW)算法。它提供了一个仅包含头文件的库,用于在高维空间中执行近似最近邻搜索,并附带 Python 绑定,将这些索引和搜索功能暴露给数据科学环境。

nmslib/hnsw 的主要功能有哪些?

nmslib/hnsw 的主要功能包括:Vector Similarity Search, Low-Latency Vector Retrieval, Approximate Nearest Neighbor Search, Proximity Graph Indexes, Vector Indexing, HNSW Indexes, Vector Distance Metrics, Disk-Persistent Data Structures。

nmslib/hnsw 有哪些开源替代品?

nmslib/hnsw 的开源替代品包括: nmslib/hnswlib — hnswlib is a header-only C++ library and vector indexing engine designed for high-dimensional approximate nearest… unum-cloud/usearch — USearch is a high-performance vector similarity search engine and approximate nearest neighbor index designed for… lancedb/lancedb — LanceDB is a vector database and columnar data store designed to function as a versioned dataset manager and vector… microsoft/sptag — SPTAG is a vector approximate nearest neighbor search library and distributed vector search engine. It provides a… redisearch/redisearch — RediSearch is a Redis module that adds secondary indexing, full-text search, aggregation, and vector similarity search… redis/go-redis — This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive…

Hnsw 的开源替代方案

相似的开源项目,按与 Hnsw 的功能重合度排序。
  • nmslib/hnswlibnmslib 的头像

    nmslib/hnswlib

    5,253在 GitHub 上查看↗

    hnswlib is a header-only C++ library and vector indexing engine designed for high-dimensional approximate nearest neighbor search. It organizes large collections of embeddings into a searchable graph structure to enable rapid proximity queries and distance calculations. The system utilizes Hierarchical Navigable Small World graphs to achieve fast vector similarity search. It distinguishes itself by allowing the definition of custom distance metrics and similarity functions to adapt calculations to specific data requirements. The engine covers the full indexing lifecycle, including incrementa

    C++
    在 GitHub 上查看↗5,253
  • unum-cloud/usearchunum-cloud 的头像

    unum-cloud/USearch

    3,888在 GitHub 上查看↗

    USearch is a high-performance vector similarity search engine and approximate nearest neighbor index designed for dense embeddings. It functions as a low-level vector database core and high-dimensional vector indexer, providing the primitives necessary to store and retrieve vectors across massive datasets. The engine distinguishes itself through hardware-level SIMD acceleration for distance kernels and a proximity-graph indexing system that enables fast retrieval across billions of vectors. It supports multi-precision vector quantization to balance memory usage and accuracy, and utilizes memo

    C++approximate-nearest-neighbor-searchclusteringdatabase
    在 GitHub 上查看↗3,888
  • lancedb/lancedblancedb 的头像

    lancedb/lancedb

    9,031在 GitHub 上查看↗

    LanceDB is a vector database and columnar data store designed to function as a versioned dataset manager and vector search engine. It serves as a high-performance backend for indexing and retrieving high-dimensional embeddings, providing the foundation for machine learning data pipelines. The system distinguishes itself through a combination of cloud-native object storage and immutable version tracking, allowing for data time-travel and reproducible AI experiments. It integrates hybrid search capabilities, merging dense vector similarity with BM25 full-text search and SQL-like scalar filters

    HTMLapproximate-nearest-neighbor-searchimage-searchnearest-neighbor-search
    在 GitHub 上查看↗9,031
  • microsoft/sptagmicrosoft 的头像

    microsoft/SPTAG

    5,004在 GitHub 上查看↗

    SPTAG is a vector approximate nearest neighbor search library and distributed vector search engine. It provides a large-scale vector index designed to organize and retrieve similar vectors from massive datasets using high-performance similarity search and proximity queries. The system functions as a dynamic vector index manager, supporting incremental updates, insertions, and deletions of vectors without requiring a full index rebuild. It scales search operations across multiple machines to handle large-scale datasets and high volumes of online requests through distributed search request hand

    C++
    在 GitHub 上查看↗5,004
  • 查看 Hnsw 的所有 30 个替代方案→