← Back to Leaderboard
Uunum-cloud

unum-cloud/USearch

Embeddable C++ proximity-graph index for vector retrieval across RAM, VRAM, and NVMe

Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated 2d ago
Latest Release
v2.26.6
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AIAPIGPU1 README badge views (30d)
Total Stars
★ 4,413
24h Growth
+0
7d Growth
+19
Forks
388

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

unum-cloud/USearch Star History (2023-02-23 - 2026-12-04) ALL-TIME STAR HISTORY (2023-02 – 2026-12) +4.4k in 1380d · avg +3/day 4.7k 2.3k 0 2023-02-23: ★ 12023-05-20: ★ 2322023-08-12: ★ 6002023-11-04: ★ 8042024-01-27: ★ 1,2862024-04-20: ★ 1,5592024-07-13: ★ 1,8732024-10-05: ★ 2,0902024-12-28: ★ 2,2992025-03-22: ★ 2,5432025-06-14: ★ 2,7322025-09-06: ★ 3,0332025-11-29: ★ 3,3102026-02-21: ★ 3,8592026-05-16: ★ 4,0652026-08-08: ★ 4,2402026-12-04: ★ 4,413 ★ 4.4k 2023-02 2025-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

USearch is an embeddable approximate nearest-neighbor index built around a proximity graph. Its header-only C++23 core has a basic RAM tier that needs only the standard library. The native index specializes traversal by modality, residency, stored scalar, and metric; builds select kernel families, and runtime detection selects a supported hardware path unless the caller pins one. Mixed-precision numerical kernels come from NumKong. Shards partition entries rather than replicate the graph: RAM shards follow memory domains, VRAM shards follow devices, and NVMe views follow checkpoint parts.

Bindings share a C ABI with typed buffers. The index holds the graph, an executor schedules work, and an optional reusable arena owns variable-sized output buffers. CPU workers overlap independent walks, GPU warps cooperate on candidate scoring, and NVMe walks yield while reads complete through paths such as io_uring or SPDK. SafeGraphs serializes keys, vectors, norms, and links, so a compatible checkpoint can move between residency tiers without a format rewrite.

Key Capabilities & Differentiators

Dense retrieval supports inner-product, angular, Euclidean, Hamming, and Jaccard metrics, with storage options including BF16, 8-bit integers, and packed bits. Public keys are 128-bit and can identify multiple vectors. Adjacency uses 32-bit internal node IDs, allowing roughly four billion entries per shard before more shards are needed. RAM insertion batches publish complete entries and keys through per-shard watermarks. Queries can overlap insertion or refinement, but those two write operations take turns.

Online insertion greedily links each new entry; a separate refinement pass scans stored entries and rewires neighborhoods to improve navigability beyond what incremental insertion can achieve. The graph can also serve as a sparse operand for products, MaxSim scoring, and softmax attention. Sequence, shape, and geospatial indexes are experimental and open read-only on NVMe. Apple GPU support is narrower: shapes are f16-only, and geospatial sets and attention are not supported.

Trade-offs & Limitations

USearch is a strong fit when the application should own the index and keep retrieval local. Treat it as the retrieval component, not as a turnkey replacement for a managed service such as Pinecone: plan separately for document and metadata storage, API access, backups, and availability. Residency changes query semantics as well as placement. RAM and NVMe can admit results through a host predicate while excluded entries still route the walk; GPU traversal cannot execute that predicate. If filtering defines the candidate set, GPU top-k followed by application-side filtering is not equivalent and may return too few eligible hits.

The SIFT 100M results show why build time and serving throughput should be evaluated separately. On 192 AWS Graviton5 cores, USearch built at 161,952 vectors/s and searched at 173,823 QPS; FAISS HNSW built at 84,536 vectors/s and searched at 178,600 QPS. Their 1-recall@10 was 0.9925 and 0.9917, respectively. That is a close-recall comparison for one dataset, not a production latency forecast. Benchmark with your embeddings, metric, filter selectivity, and batch sizes before choosing a configuration.

Hardware & Deployment Guide

Start with the embedded RAM path for local development: the Python package installs with pip install usearch, and the supplied pyproject.toml requires Python 3.12 or newer and uses scikit-build-core>=0.11 for native wheel builds. The npm package requires Node.js 22 or newer and uses bindings and node-gyp-build. Check wheel or native package availability for the actual platform instead of assuming all build targets ship. C++ consumers can use the header-only core with a C++23 toolchain.

For a self-hosted API, the embedded path lets you put your own service around the index. A v2.26.6 release entry mentions installing server-image Python packages in a virtual environment, but does not specify an image reference or API contract. That release also records GCC 16 and macOS 14 kernel compatibility work; v2.26.5 added C library and header install targets. Size the deployment using measured recall, tail latency, and peak memory under both build and query load. For NVMe, test the chosen I/O path and allow disk headroom for new parts during refinement or resharding.

Embedding: Header-only C++23 core with a standard-library-only basic RAM tier, a C ABI, and language bindings.
Key layout: Public 128-bit keys support multiple vectors per key; compact 32-bit node IDs keep adjacency storage separate from key width.
Persistence: SafeGraphs checkpoints carry keys, vectors, norms, and graph links across supported RAM, VRAM, and NVMe paths.
Update model: RAM batches publish complete entries through shard watermarks; incremental insertion and graph-wide refinement are separate operations.
Hardware boundary: GPU traversal does not accept host predicates; Apple GPU paths also omit attention and geospatial sets.
NVMe maintenance: Dense refinement and resharding write new parts rather than modifying live parts in place; non-dense checkpoints are read-only.
Best For

Local or self-hosted RAG that already has a document store and needs an embeddable dense-vector index with control over storage precision and residency.

Skip If

You need a turnkey managed vector service, in-traversal GPU metadata filtering, or production guarantees for the experimental non-dense modalities.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AIAPIGPU
pip install usearch

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
USearch ★4.4k+19C++Apache-2.0Embeddable C++ proximity-graph index for vector retrieval across RAM, VRAM, and
weaviate17k+17Go—Go vector database for filtered hybrid retrieval in production RAG stacks
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval
pgvector23.9k+96C—PostgreSQL extension for exact and approximate vector search alongside relationa

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/unum-cloud/USearch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

unum-cloud/USearch Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about USearch

How should I integrate USearch into a RAG application?

Keep document text and metadata in your existing store. Insert embeddings under stable keys, query the index for top-k keys and distances, then fetch the corresponding chunks. The native API separates the index, executor, and output arena; reuse an arena only after consuming its previous results. If retrieval needs a host predicate during the graph walk, use RAM or NVMe rather than GPU residency.

Do I need a GPU, and how should I size RAM or VRAM?

No GPU is required for the basic in-RAM C++ tier. Size a pilot using your corpus size, vector dimensionality, stored scalar type, graph connectivity, and query concurrency. Budget for graph links, keys, norms, and working buffers as well as vector payloads. For a GPU deployment, measure peak device memory during both indexing and serving; vector bytes alone are not a VRAM estimate.

Can I self-host USearch in a commercial product?

Apache-2.0 permits commercial use and self-hosting. If you redistribute the software, comply with the applicable license and notice requirements and review the terms of any dependencies you bundle. The embedded execution path does not require a hosted retrieval API.

When should I choose USearch over Pinecone or FAISS?

Choose USearch over a managed service such as Pinecone when you want the index in your own process and are prepared to operate it. Against FAISS, compare equivalent index configurations at matched recall on your own workload. In the 192-core Graviton5 SIFT 100M comparison, USearch built faster than FAISS HNSW, while FAISS HNSW delivered slightly higher search throughput. That result does not establish a general winner.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining unum-cloud/USearch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature unum-cloud/USearch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare