PulseOnix / open source

vek

Zero-dependency, hand-tuned SIMD vector similarity kernels for dot product, L2 distance, and cosine similarity — the hot loops powering vector search, embeddings, and RAG pipelines.

By Alish Karki, part of the PulseOnix engineering collective.

Implementation

Usage

Integrate the C ABI into a vector-search or embedding pipeline for dot product, L2 distance, or cosine similarity. Follow the repository build instructions and select the input precision supported by your vectors; runtime dispatch selects the available SIMD path.

Limitations and evidence

vek supplies similarity kernels, not an embedding model, vector database, or approximate-nearest-neighbor index. Performance depends on CPU instruction support, vector dimensions, precision, compiler, and memory layout. Historical timings are not a portable performance guarantee.

Source and technical writing

Source code and current build instructions

Read the vek development article

All PulseOnix projects · Engineering blog · Start a project