Skip to main content

LlamaIndex Vector_Stores Integration: Hnswlib

A LlamaIndex vector store using Hnswlib, a header-only C++ HNSW implementation with python bindings.

Usage

Pre-requisite:

pip install llama-index-vector-stores-hnswlib
pip install hnswlib

A minimal example:

import hnswlib
from llama_index.vector_stores_hnswlib import HnswlibVectorStore

space = "ip"  # distance function
dim = 768  # embedding dimension
hnswlib_index = hnswlib.Index(space, dim)
hnswlib_index.init_index(max_elements=10)

hnsw_vector_store = HnswlibVectorStore(hnswlib_index=index)

More examples and references

A detailed usage guede can be found in this demo notebook in the LlamaIndex docs.

Hnswlib documentation and implementation can be found here.

Metadata

Release files for llama-index-vector-stores-hnswlib 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-vector-stores-hnswlib 0.6.0
File Size Uploaded Provenance Actions
llama_index_vector_stores_hnswlib-0.6.0.tar.gz 5.8 kB Without provenance Details for llama_index_vector_stores_hnswlib-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-vector-stores-hnswlib 0.6.0
File Interpreter ABI Platform Actions
llama_index_vector_stores_hnswlib-0.6.0-py3-none-any.whl Python 3 none any Details for llama_index_vector_stores_hnswlib-0.6.0-py3-none-any.whl

Total release size: 11.3 kB

Release files / llama_index_vector_stores_hnswlib-0.6.0.tar.gz

Download URL llama_index_vector_stores_hnswlib-0.6.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6de38ef8141a64a5fa9e1b1185b76ce6a5200e603e2e8d7a4c80a63b8eec249a
BLAKE2b-256 checksum
How to use checksums
5f52cc31b7160b8cd03f9945072c20cde87180de720a5148cb94542b9052b519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_vector_stores_hnswlib-0.6.0-py3-none-any.whl

Download URL llama_index_vector_stores_hnswlib-0.6.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27ed3c4e44fc23f7a793dfcf5ce4fd5e8bf507c494f40d1eaabc0b67b2e9f30f
BLAKE2b-256 checksum
How to use checksums
9ec5573bfcd8d970135c993622c69aae3fd03f10e9820b7dc76763edea8b0794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-vector-stores-hnswlib 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page