qmetrics.net

LEANN

Low-storage vector index for local RAG and search

LEANN screenshot

LEANN is a storage-efficient vector index for semantic search and retrieval-augmented generation on personal data. It recomputes embeddings on demand so indexes stay small on a laptop.

Overview

LEANN is a vector index aimed at embedding-based search and retrieval-augmented generation when storage is tight. It recomputes embeddings on the fly instead of storing them all, and compresses proximity graph index structure while keeping search accuracy comparable to conventional vector indices.

The project targets personal knowledge on a single machine: documents, email, browser history, chat logs, agent conversation exports, and live data pulled through MCP servers. Index sizes in the documentation are far smaller than storing full embedding tables for the same text volume, and processing is intended to stay on the device without sending data to cloud APIs by default.

A declarative configuration file drives indexing and question answering. The CLI and examples cover many data sources, and LEANN can act as a semantic search MCP service compatible with Claude Code. Text generation can use local engines such as Ollama or OpenAI-compatible HTTP APIs, with separate options for embedding providers.

Optional paths include multimodal PDF search with ColQwen or ColPali, OCR for scanned PDFs, and integrations with LangChain-style stacks. Compared with traditional vector databases that persist all embeddings, LEANN trades stored vectors for on-demand computation to cut disk use.

Key features

  • On-demand embedding recomputation
  • Compressed graph vector index
  • Declarative RAG configuration API
  • Many personal data source connectors
  • MCP semantic search for coding agents
  • OpenAI-compatible LLM and embedding backends
  • Local Ollama inference support
  • ColQwen multimodal PDF retrieval

Use cases

  • Semantic search over local files
  • Private RAG on email and chat history
  • Coding agent codebase retrieval
  • Indexing browser history for lookup
  • Large personal corpora on one laptop

Tags

Similar software

Vespa

Open AI search and vector serving platform

Vespa queries and ranks vectors, tensors, text, and structured data at serving time. It targets search, recommendations, personalization, and RAG with sub-100ms latency at large scale.

★ 7.2k⟳ todayApache-2.0

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

llama.cpp

LLM inference engine in C/C++ for local and cloud hardware

llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.

★ 136.5k⟳ todayMIT
Open Source Alternative to:OpenAI API

Whisper

General-purpose speech recognition and translation model

Whisper is a speech recognition model trained on diverse audio. It supports multilingual transcription, speech-to-English translation, and language identification via Python or the command line.

★ 113.6k⟳ 2 months agoMIT