qmetrics.net

turbovec

In-process TurboQuant vector index for Python and Rust

An in-process vector index for Python and Rust that compresses embeddings to 2 or 4 bits per dimension and searches the compressed form with SIMD kernels.

Overview

turbovec is an in-process vector index for Python and Rust built on Google Research’s TurboQuant. It stores each vector at 2 or 4 bits per dimension and runs nearest-neighbor search directly on that compressed representation using SIMD kernels tuned for agent workloads.

Compared to holding embeddings as float32, the index uses far less memory at comparable recall to FAISS in the project’s benchmarks. Search can use a staged flow that scans one bit plane and rescored the shortlist exactly. Adding vectors does not require a training step or full rebuilds; the codebook comes from the math rather than your data. Vectors become searchable as soon as they are added, and removals are meant to be fast. The sync(path) call persists only what changed since the last call with crash-safe incremental writes.

It runs inside your application, not as a network service. Python inputs are 2-D float32 arrays; scores are inner products, so vectors should be normalized for cosine similarity. Optional IdMapIndex keys items by uint64 ids. Drop-in integrations exist for LangChain, LlamaIndex, Haystack, and Agno in-memory stores. Filtered search accepts an allowlist of ids or a bitmask.

The authors position it for corpus sizes where linear scan is acceptable, not as a graph index for hundreds of millions of vectors behind strict latency. Quantization is lossy; recall should be checked on your own data. There is no network API, replication, or multi-tenant server—only a library and file format.

Key features

  • 2-bit and 4-bit TurboQuant compression
  • SIMD search on compressed vectors
  • Incremental add and remove without rebuild
  • Crash-safe sync() persistence
  • Filtered search with id allowlist or bitmask
  • Python and Rust APIs
  • LangChain, LlamaIndex, Haystack, Agno integrations
  • Optional calibrate(sample) for drifting embeddings

Use cases

  • In-process embedding retrieval for RAG
  • Offline nearest-neighbor search in Python or Rust
  • Low-memory vector storage in an application
  • Replacing framework in-memory vector stores
  • Local stacks with open embedding models

Tags

Similar software

PageIndex

Reasoning-based document retrieval without vector indexes

PageIndex builds a hierarchical tree index from PDFs and answers questions by having a language model reason over that structure instead of embedding chunks in a vector database.

  • Tree index built from PDF layout
  • LLM reasoning over the index for retrieval
  • Local SDK with pluggable chat models
PythonDetails →
★ 40.9k⟳ yesterdayMIT

Composio

SDK and CLI for connecting AI agents to many apps

Composio equips AI agents with large sets of pre-authenticated toolkits, per-user sessions, authentication, triggers, and a sandbox. SDKs ship for TypeScript and Python with adapters for common agent frameworks.

  • Pre-authenticated app toolkits
  • Per-user agent sessions
  • Runtime tool discovery and execution
TypeScriptCLIDetails →
★ 31.4k⟳ todayMIT

PageAgent

In-page JavaScript GUI agent for web applications

Embeddable script adds a natural-language agent to any webpage for DOM-based actions without screenshots or a Python backend.

  • Single-script or npm integration
  • DOM-based page manipulation
  • Bring-your-own LLM configuration
TypeScriptWeb, Browser extensionDetails →
★ 29.8k⟳ 16 days agoMIT
Open Source Alternative to:Claude in Chrome

AI SDK

TypeScript toolkit for AI applications and agents

The AI SDK is a provider-agnostic TypeScript library for building AI-powered applications and agents with popular UI frameworks and Node.js runtimes.

  • Unified provider API
  • Vercel AI Gateway support
  • Text and structured output
TypeScriptDetails →
★ 28.4k⟳ todayApache-2.0

Stagehand

SDK for AI-driven browser automation

Stagehand gives agents Playwright-style browser control with natural-language act, observe, and extract helpers. It ships for TypeScript, Python, and Go with local Chrome or hosted cloud browsers.

  • Playwright-style page methods
  • Natural-language act and extract
  • Self-healing action adaptation
TypeScriptCLIDetails →
★ 26.2k⟳ todayMIT

Memvid

Single-file portable memory layer for AI agents

Packages embeddings, search structure, and metadata into one portable file so agents get fast retrieval and persistent memory without a separate vector database

  • Single .mv2 memory capsule file
  • Append-only Smart Frame storage
  • Hybrid BM25 and vector search
RustCLIDetails →
★ 17.4k⟳ 4 months agoApache-2.0