VectorCore: Low-Level Vector Search & HNSW Indexing Engine
VectorCore is a lightweight, zero-dependency vector search engine built from scratch in Python and NumPy. It implements SIMD-friendly vector distance metrics, an exact brute-force baseline index, and a Hierarchical Navigable Small World (HNSW) graph index with binary disk serialization.
Key Features
- Vectorized Metric Kernels: Optimized Euclidean (L2) and Cosine distance implementations.
- HNSW Graph Index: Approximate Nearest Neighbor (ANN) search using greedy graph traversal with configurable
ef_constructionandef_searchbeam width. - Exact Flat Index: Linear-scan baseline providing 100% ground-truth recall validation.
- Binary Serialization: Zero-copy disk persistence protocol (
.vcore) preserving index topologies and high-dimensional vector embeddings.
Benchmark Results
Evaluated on 5,000 vectors (128 dimensions) queried with 100 randomized vectors at $k=10$:
| Index Type | Build Time | Avg Latency | Throughput (QPS) | Recall@10 |
|---|---|---|---|---|
| Flat (Brute-Force) | 0.000s | 1.298 ms | 770.3 queries/s | 100.0% |
| HNSW (Graph ANN) | 6.830s | 0.533 ms | 1876.5 queries/s | 61.3% |
- Performance Gain: 2.44x faster search latency over brute-force linear scanning.
Quickstart
1. Installation
git clone [https://github.com/irtazirfan08-source/VectorCore.git](https://github.com/irtazirfan08-source/VectorCore.git)
cd VectorCore
pip install -r requirements.txt
Release files for vectorcore-ann 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vectorcore_ann-0.1.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vectorcore_ann-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / vectorcore_ann-0.1.0.tar.gz
| Download URL | vectorcore_ann-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8ae0f7ba24b0f6d754f235277989cc8557cc65fb766c266e791b6e37f7fb6b2
|
|
BLAKE2b-256 checksum How to use checksums |
065b15fabe1d96935cfb0cd585dae37b2e3464dcdc2199c3d49a04d7fec5b0fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / vectorcore_ann-0.1.0-py3-none-any.whl
| Download URL | vectorcore_ann-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d427f0a0133d55d4788a3a00222b8b261ec39d242f19c174ab10148eb3b5d19
|
|
BLAKE2b-256 checksum How to use checksums |
bd11d7e6020f4a0eedd126c7f9326e8826eb0a9424d7995781bade8fa4345511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency log