Back to directory

Semafold

A vector compression toolkit for AI workloads that uses TurboQuant codecs to shrink embeddings and KV-cache tensors roughly tenfold, with typed encode and decode contracts and measured byte accounting.

Semafold

Semafold compresses embeddings, retrieval representations, and cache-shaped key/value tensors for AI infrastructure, aiming to give teams measurable storage reduction without losing visibility into distortion, artifact size, or integration boundaries. Its core is a pure NumPy implementation that needs no GPU, with optional automatic acceleration on NVIDIA CUDA or Apple Metal through PyTorch or MLX when they are installed.

Reported benchmarks show about a 10.5x size reduction for a float32 embedding workload and roughly 9.5x for a float32 KV tensor workload using its TurboQuant-based codecs, with every result accompanied by typed encode and decode contracts, explicit guarantees, and deterministic synthetic validation. The architecture separates a stable root contract, a codec layer with concrete compression implementations such as the TurboQuant family, and a validation layer that keeps storage, distortion, and behavior checks measurable.

It targets embedding stores, vector databases and retrieval pipelines, long-term vector memory in AI orchestrators, and KV-tensor compression in custom inference engines.

More in RAG

See all 540
  • ai·rete·rag

    ai-rete-rag.com

    A platform that pairs a Rete rule engine with retrieval-augmented generation, so deterministic rules decide an outcome and grounded retrieval explains the decision in plain language.

  • Xtriever

    github.com

    A hybrid retrieval engine for retrieval-augmented generation, written in Rust to run on-device on a phone or a laptop, combining lexical BM25 search, dense embedding search, reciprocal-rank fusion and cross-encoder re-ranking with no server.

  • FileFlux

    github.com

    A .NET library that turns PDF, DOCX, HWP and other documents into optimized chunks for RAG systems, through a five-stage pipeline built on high-performance Rust FFI readers.