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

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

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

nmslib/hnswlib

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

Hnswlib

hnswlib 是一个仅包含头文件的 C++ 库和向量索引引擎,专为高维近似最近邻搜索而设计。它将大型嵌入集合组织成可搜索的图结构,以实现快速的邻近查询和距离计算。

该系统利用分层可导航小世界(HNSW)图来实现快速向量相似度搜索。其独特之处在于允许定义自定义距离度量和相似度函数,以适应特定数据需求。

该引擎涵盖了完整的索引生命周期,包括增量索引构建以及通过添加和元素移除来管理数据点。查询功能包括近似和精确最近邻搜索,并辅以布尔搜索过滤,以根据元素标签排除候选对象。

该库支持通过二进制文件序列化进行索引持久化,并提供并行执行配置,以将查询和索引任务分配到多个 CPU 核心上。

Features

  • Hierarchical Proximity Graphs - Utilizes Hierarchical Navigable Small World graphs to achieve logarithmic search complexity through coarse-to-fine navigation.
  • Vector Indexing - Implements a high-performance indexing engine specifically designed for high-dimensional vector data and similarity search.
  • Vector Similarity Search - Implements algorithms and data structures for performing similarity search on high-dimensional vector embeddings.
  • Approximate Nearest Neighbor Search - Utilizes Hierarchical Navigable Small World graphs to trade absolute precision for significantly faster proximity lookups.
  • Graph - Constructs hierarchical proximity graphs by configuring link density to balance memory usage and retrieval recall.
  • Vector Indexing Engines - Acts as a high-performance engine for organizing vectors to enable rapid proximity queries and distance calculations.
  • HNSW Indexes - Provides a high-performance implementation of Hierarchical Navigable Small World (HNSW) indexes for approximate nearest neighbor search.
  • Incremental Vector Sync - Supports incremental index management by adding or removing elements without requiring a full rebuild.
  • Nearest Neighbor Searches - Implements algorithms for finding the closest vectors in high-dimensional space based on distance calculations.
  • Vector Distance Metrics - Provides the mathematical framework for implementing specialized similarity functions between high-dimensional vectors.
  • Customizable Distance Metrics - Allows the definition of custom similarity functions to adapt distance calculations to specific data requirements.
  • Greedy Graph Search - Implements greedy search traversal to efficiently navigate the graph layers toward the closest vector.
  • Header-only Libraries - Distributed as a header-only C++ library to enable compiler inlining and simplify integration.
  • Search Index Deletions - Allows for the removal of specific data points from the search index via unique identifiers.
  • Incremental Indexing Engines - Supports adding and updating vectors within the index without necessitating a full rebuild of the graph structure.
  • Index Persistence Utilities - Enables saving and loading the current index state to binary files for persistence across sessions.
  • Search Index Management - Includes tools for managing the index lifecycle, including marking elements as deleted to reclaim memory.
  • Dynamic Index Updating - Provides mechanisms to update index content and replace elements to ensure the dataset remains current.
  • Vector Databases - Provides the core indexing and retrieval layer necessary for building high-performance vector databases.
  • Multi-threaded Execution - Distributes independent search and indexing requests across multiple CPU cores to increase throughput.
  • Template-Based Metrics - Uses C++ template polymorphism to inject custom similarity functions without the overhead of virtual function calls.
  • AI & Machine Learning - Fast approximate nearest neighbors library
  • Machine Learning - Fast approximate nearest neighbor search library.

Star 历史

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

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Hnswlib 的开源替代方案

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

    nmslib/hnsw

    5,257在 GitHub 上查看↗

    This project is a C++ vector similarity engine and implementation of the Hierarchical Navigable Small World algorithm. It provides a header-only library for performing approximate nearest neighbor searches in high-dimensional spaces, alongside Python bindings that expose these indexing and search capabilities to data science environments. The engine enables real-time embedding retrieval and high-dimensional similarity search using a multi-layered graph structure to balance search speed and accuracy. It supports custom distance metrics to calculate similarity between vectors in various mathema

    C++
    在 GitHub 上查看↗5,257
  • 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
  • alibaba/zvecalibaba 的头像

    alibaba/zvec

    5,198在 GitHub 上查看↗

    zvec is an embedded vector database engine and indexing library designed for high-dimensional similarity search. It functions as a hybrid search engine and a retrieval-augmented generation knowledge base, allowing for the storage and retrieval of dense and sparse vectors. The system is distinguished by its hybrid retrieval pipeline, which fuses vector similarity, full-text keyword matching, and scalar metadata filtering into single query operations. It supports a plugin-based model integration system for registering custom embedding models and rerankers, as well as language bindings for nativ

    C++ann-searchembedded-databaserag
    在 GitHub 上查看↗5,198
查看 Hnswlib 的所有 30 个替代方案→

常见问题解答

nmslib/hnswlib 是做什么的?

hnswlib 是一个仅包含头文件的 C++ 库和向量索引引擎,专为高维近似最近邻搜索而设计。它将大型嵌入集合组织成可搜索的图结构,以实现快速的邻近查询和距离计算。

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

nmslib/hnswlib 的主要功能包括:Hierarchical Proximity Graphs, Vector Indexing, Vector Similarity Search, Approximate Nearest Neighbor Search, Graph, Vector Indexing Engines, HNSW Indexes, Incremental Vector Sync。

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

nmslib/hnswlib 的开源替代品包括: nmslib/hnsw — This project is a C++ vector similarity engine and implementation of the Hierarchical Navigable Small World algorithm.… 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… alibaba/zvec — zvec is an embedded vector database engine and indexing library designed for high-dimensional similarity search. It… microsoft/sptag — SPTAG is a vector approximate nearest neighbor search library and distributed vector search engine. It provides a… tporadowski/redis — Redis is a high-performance in-memory key-value store that functions as a distributed cache, message broker, and NoSQL…