AIAny
AI Infra2025
Icon for item

LEANN

Stores a pruned proximity graph instead of all embeddings, recomputing vectors on demand at query time. A 60M-doc index takes 6GB, not 201GB (97% less), at comparable recall. Powers private local RAG over files, mail, chat, and browser history.

Introduction

Vector databases have a dirty secret: the embeddings often dwarf the source data. Index 60M documents and you may be carrying 201GB of float vectors. LEANN's bet is that most of those vectors are never read during any given query, so storing them all is waste. It keeps a pruned graph and recomputes embeddings on the fly only for the handful of nodes a search actually visits.

How It Works

The index is a high-degree-preserving pruned proximity graph plus the raw text, not a vector store. During traversal LEANN regenerates embeddings for visited nodes using the original model, trading a bit of compute for an order-of-magnitude smaller footprint.

  • 60M-document index: 6GB instead of 201GB, a 97% reduction
  • Personal corpora shrink hard too: 780K email chunks at 79MB (vs 2.4GB), 400K chat messages at 64MB, 38K browser entries at 6.4MB
  • HNSW backend maximizes savings via full recompute; DiskANN backend trades some storage back for PQ-accelerated traversal
  • Recall stays close to solutions that store every vector
Who It's For

Great fit if you want private, on-device semantic search over your own data — Apple Mail, Chrome history, WeChat, iMessage, exported ChatGPT/Claude logs, or a codebase with AST-aware chunking — without shipping embeddings to a server or paying for hundreds of gigabytes. Look elsewhere if your workload is latency-critical at high QPS: recomputing embeddings per query costs CPU/GPU time that a fully materialized vector index avoids. The tradeoff is deliberate — storage for compute.

Information

  • Websitegithub.com
  • OrganizationsSky Computing Lab, UC Berkeley
  • AuthorsYichuan Wang, Zhifei Li, Berkeley Sky Computing Lab
  • Published date2025/06/30

More Items

GitHub
AI Agent2026

Provides a lightweight Python harness that turns LLMs into working agents with tool-use, skills, persistent memory, permission controls and multi-agent coordination. Ships with a CLI/React TUI, 43+ built-in tools, a plugin/skill system and the ohmo personal-agent for chat gateways. Best for developers prototyping agent workflows and multi-agent experiments.

GitHub
AI Model2026

Runs the Bonsai family of quantized LLMs locally (including vision-capable 27B): provides scripts and demo UIs to run 1-bit and ternary Bonsai models on macOS (Metal), Linux/Windows (CUDA/Vulkan/ROCm), or CPU, with long context, tool-calling and an optional Open WebUI agent demo.

GitHub
AI Client2025

Turns Chromium into a local-first AI browser with an embedded assistant that can summarise pages, extract structured data, automate web tasks, and run scheduled agents. Built as an open-source Chromium fork with 53+ built-in browser tools, 40+ app integrations, and support for BYO AI keys or fully local models (Ollama / LM Studio).