Skip to main content

eavec

SIMD-accelerated vector similarity search. Pre-compiled kernels with a NumPy API.

pip install eavec

Quick start

import numpy as np
from eavec import batch_cosine, top_k

db = np.random.rand(100_000, 384).astype(np.float32)
query = np.random.rand(384).astype(np.float32)

scores = batch_cosine(query, db)
values, indices = top_k(scores, k=10)

Why eavec?

  • 3-4x faster than FAISS at dim=384 (the most common embedding dimension)
  • 8-27x faster than NumPy depending on metric and dimension
  • Zero dependencies beyond NumPy. No Rust, no LLVM, no compilation step.
  • Multi-threaded batch operations release the GIL for true parallelism.

API

Single-pair operations

Function Signature Returns
dot(a, b) two 1D float32 arrays float
norm(a) one 1D float32 array float
cosine(a, b) two 1D float32 arrays float
l2_squared(a, b) two 1D float32 arrays float

Batch operations

Function Signature Returns
batch_dot(query, db) query: 1D(dim,), db: 2D(n,dim) 1D float32(n,)
batch_cosine(query, db) query: 1D(dim,), db: 2D(n,dim) 1D float32(n,)
batch_l2(query, db) query: 1D(dim,), db: 2D(n,dim) 1D float32(n,)
normalize(db) db: 2D(n,dim) 2D float32(n,dim)
threshold_filter(scores, threshold) scores: 1D float32 1D int32 indices
top_k(scores, k) scores: 1D float32, k: int (values, indices)

Multi-threaded

Function Signature Returns
batch_dot_mt(query, db, num_threads=None) same + threads 1D float32(n,)
batch_cosine_mt(query, db, num_threads=None) same + threads 1D float32(n,)
batch_l2_mt(query, db, num_threads=None) same + threads 1D float32(n,)

Platforms

  • Linux x86_64 (AVX2)
  • Linux aarch64 (NEON)
  • Windows x86_64 (AVX2)

How it works

eavec ships pre-compiled SIMD kernels built with Ea, a SIMD kernel compiler. The kernels use dual-accumulator FMA with f32x8 vectors, restrict pointers for no-alias optimization, and explicit prefetch hints.

License

Apache-2.0

Metadata

Release files for eavec 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for eavec 0.1.0
File Interpreter ABI Platform Actions
eavec-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for eavec-0.1.0-py3-none-win_amd64.whl
eavec-0.1.0-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for eavec-0.1.0-py3-none-manylinux_2_17_x86_64.whl
eavec-0.1.0-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for eavec-0.1.0-py3-none-manylinux_2_17_aarch64.whl

Total release size: 59.5 kB

Release files / eavec-0.1.0-py3-none-win_amd64.whl

Download URL eavec-0.1.0-py3-none-win_amd64.whl
Size 18.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
bdd4e0effd0fea7149e45c9b7fa2078b7816ccd65bc75bb738ed8c4b3d1c36e1
BLAKE2b-256 checksum
How to use checksums
aaf7c9817daffd648097323abd57ae08ee3f7068ca21aca7de40d3c80cb887ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 2, 2026.

Transparency log

Release files / eavec-0.1.0-py3-none-manylinux_2_17_x86_64.whl

Download URL eavec-0.1.0-py3-none-manylinux_2_17_x86_64.whl
Size 21.3 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
42f21b8ad43346607b9d5fd5537099d3c449dfd52729c9dd0d092d738326ef19
BLAKE2b-256 checksum
How to use checksums
a4a06105c5493cdef41dd7edf13852dca89c0151102aa9873d0c869d9b640d16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 2, 2026.

Transparency log

Release files / eavec-0.1.0-py3-none-manylinux_2_17_aarch64.whl

Download URL eavec-0.1.0-py3-none-manylinux_2_17_aarch64.whl
Size 19.2 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2610d8da8be7987f9674b8a036a5bf2af3c0055060b59f92efb9d1165c74413a
BLAKE2b-256 checksum
How to use checksums
51f04c5851e040489bf3211b61b0de3def4132936d7359d78f241a5e0c3c40d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 2, 2026.

Transparency log

Security for eavec 0.1.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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for eavec-0.1.0-py3-none-win_amd64.whl

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 Mar 2, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files Full provenance

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