# hnswlib — card for AI agents

Fast approximate nearest neighbor search library for vector similarity.

Category: ML and data science · PyPI package `hnswlib` · latest version 0.8.0 (checked 2026-11-01)
Install: `pip install hnswlib`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 44.0 (#2666 of all tools, 139 of 293 in its category)
- Downloads last week: 169,108 (as of 2026-11-24), +1.5% over 4 weeks
- GitHub stars: 5,371 (as of 2026-11-24)
- Last push: 2026-09-15

## Often used with
OpenAI Python Library 97.8%, NetworkX 93.5%, Tenacity 93.5%, Hugging Face Hub 89.1%, NumPy 89.1%, tiktoken (Python) 87.0%

## Links
- AgentGid page: https://agentgid.com/tools/hnswlib/
- Homepage: https://github.com/yurymalkov/hnsw
- Repository: https://github.com/yurymalkov/hnsw

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
