Loci

•
102
•

Acts as a queryable second brain for scattered notes and documents, enabling AI agents to access and utilize your knowledge base.

Loci is a lightweight, local-first 'second brain' designed to make your dispersed project documentation, personal notes, and chat logs centrally queryable. It employs heading-aware chunking, embeddings, and a powerful hybrid retrieval system (combining vector search with BM25) to provide highly relevant answers, complete with precise section-level citations. Uniquely, Loci functions as an MCP server, allowing AI agents (like those in Claude Desktop or other MCP hosts) to seamlessly interact with your knowledge base, effectively becoming the memory layer for any chat application. It supports fully offline operation with Ollama and is built with a hackable, ~300-line core, eschewing complex frameworks.

Características Principales

01Hybrid Retrieval: Fuses vector search with BM25 for accurate results across diverse query types and languages.
020 GitHub stars
03MCP Server Integration: Exposes tools and resources, allowing AI agents to query, ask, and ingest information from your knowledge base.
04Diverse Document Support: Indexes Markdown, text, PDFs (with table extraction), Word documents, and chat logs.
05Section-Level Citations: Grounds answers with precise `path > section` breadcrumbs for immediate verifiability.
06Local-First & Offline Capable: Stores its index entirely on your machine and supports any OpenAI-compatible API, including fully offline models via Ollama.

Casos de Uso

01Providing a memory layer for AI agents to retrieve grounded information and answer complex questions.
02Querying a unified knowledge base spanning project documentation, personal notes, and chat histories.
03Enhancing Obsidian or other note-taking apps with cross-vault search and graph traversal capabilities.