--- id: usearch version: "2.26.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # usearch — Smaller & Faster Single-File Vector Search Engine from Unum License: permissive · Maintenance: active · Downloads: 486.1K/mo ## What it is and what it does USearch is a vector search engine that builds approximate nearest-neighbor indexes using the HNSW algorithm. It is designed as a lightweight, single-file C++11 library with Python bindings and support for custom distance metrics. The package lets you index vectors, search for similar vectors efficiently, and optionally serve large indexes from disk without loading them entirely into memory. Typical usage involves creating an Index with a specified dimensionality and metric, adding vectors with keys, and then searching for nearest neighbors. It supports various data types (f32, f16, bf16, i8, and others) for memory efficiency, works across Linux, macOS, and Windows, and integrates with numpy. The runtime dependencies are numpy, tqdm, and numkong. Use it for: - Building semantic search systems that find similar embeddings from language models or vision models in large document or image collections. - Implementing recommendation engines that match user embeddings to candidate item embeddings in real time. - Clustering millions of vectors for data analysis, with support for on-disk indexes to reduce memory costs. - Genomics and chemistry applications using binary Tanimoto and Sorensen coefficients for molecular similarity. - Hybrid search combining vector similarity with custom filtering predicates or external data structures. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. USearch provides approximate nearest-neighbor vector search using HNSW indexing, supporting custom metrics, multiple data types, and on-disk index serving without loading into RAM. Yes. USearch is production-stable (Development Status 5), actively maintained, has no known vulnerabilities, and offers a lightweight alternative to heavier vector search libraries. The permissive Apache-2.0 license and broad platform support (Linux, macOS, Windows) make it suitable for most projects. Install friction is moderate due to compiled wheels, but pre-built binaries are available for current Python versions (3.10+). Verify that the numkong dependency is intentional before deploying. ## Install pip install usearch uv add usearch poetry add usearch ## Installing usearch Before you install: Medium install friction due to compiled wheels across multiple platforms and Python versions (3.10+). Active maintenance with recent releases and 4264 repository stars suggest solid ongoing support. License in practice: Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production deployments. Quickstart: pip install usearch import numpy as np from usearch.index import Index index = Index(ndim=3) vector = np.array([0.2, 0.6, 0.4]) index.add(42, vector) matches = index.search(vector, 10) Requires Python 3.10 or later; compiled wheels are platform-specific (Linux, macOS, Windows with various architectures). Verify before relying: - Whether numkong dependency is a typo or an actual required package; fact sheet lists it but it is not mentioned in the description. - Performance claims (e.g., '10x faster than FAISS') are stated in the description but not independently verified in the fact sheet. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 486.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags vector similarity search, approximate nearest neighbors, HNSW indexing, semantic search engine, vector database, embedding search, fast similarity matching, vector-search, approximate-nearest-neighbors, embeddings [View on SkillFed](https://skillfed.io/packages/usearch) · [View on PyPI](https://pypi.org/project/usearch/)