awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
yichuan-w avatar

yichuan-w/LEANN

0
View on GitHub↗
11,985 stars·1,072 forks·Python·MIT·19 viewsarxiv.org/abs/2506.08276↗

LEANN

LEANN is a framework for local retrieval augmented generation and vector indexing. It functions as a system for building local knowledge bases and source code search engines that combine large language models with retrieved private data to generate context-aware responses.

The project distinguishes itself through a vision-model based document layout extractor for parsing complex PDF figures and diagrams, and a source code search engine that employs structure-aware chunking to preserve function and class boundaries. It also implements the Model Context Protocol to integrate real-time data sources into the retrieval pipeline.

The system provides hybrid information retrieval combining semantic search, exact keyword matching, and boolean metadata filtering. It supports the indexing of diverse data sources, including web browsing history, communication logs, and technical documentation.

Features

  • Retrieval Augmented Generation - Combines retrieved local document context with large language models to generate grounded, evidence-based responses.
  • Local RAG Implementations - Builds a retrieval augmented generation system that answers questions using private local datasets and large language models.
  • RAG Frameworks - Provides a framework for combining large language models with retrieved local data for context-aware responses.
  • Hybrid Search Engines - Integrates vector-based semantic retrieval with traditional keyword-based indexing for precise technical information discovery.
  • Local Knowledge Bases - Implements a searchable repository for personal data supporting both semantic and keyword-based retrieval.
  • Search & Information Retrieval - Provides a retrieval system combining semantic meaning, exact keyword matching, and metadata filtering.
  • Semantic Search Engines - Utilizes vector embeddings to retrieve relevant documents based on the conceptual meaning of a query.
  • Vector Indexing - Builds high-dimensional vector indices from text data to enable efficient semantic retrieval.
  • Structure-Aware Chunking - Processes codebases using structure-aware chunking to preserve function and class boundaries for technical retrieval.
  • Source Code Search Engines - Ships a technical retrieval tool that uses structure-aware chunking to index and search programming codebases.
  • Syntax-Aware Chunking - Segments source code into logical units based on function and class boundaries to preserve technical context.
  • Model Context Protocol - Implements the Model Context Protocol to connect the retrieval pipeline to real-time external data sources.
  • Multimodal Vision Models - Employs multimodal vision models to interpret complex PDF layouts and diagrams for structural text extraction.
  • Technical Documentation Retrieval - Indexes source code and complex PDF layouts to provide context-aware retrieval of technical specifications.
  • Personal Knowledge Management - Indexes browser history, chat logs, and emails to create a searchable personal knowledge base.
  • Vision-Based Document Parsers - Uses vision-language models to extract structured text and diagrams from complex PDF files.
  • Multimodal Document Ingestion - Extracts information from documents using vision models to interpret complex layouts, figures, and diagrams.
  • Context Injection Protocols - Uses a standardized interface to connect real-time data sources for seamless context injection into the retrieval pipeline.
  • Real-Time Data Integration Platforms - Connects live data sources to the retrieval pipeline to ensure model responses reflect the most current information.
  • Search Filtering Systems - Refines search results using metadata operators to restrict outputs by date, file type, or custom attributes.
  • Text Search - Provides keyword and pattern-based text matching to locate specific phrases or error messages.
  • Filtered Similarity Searches - Applies boolean metadata filters on attributes like date and file type to constrain vector similarity search results.

Star history

Star history chart for yichuan-w/leannStar history chart for yichuan-w/leann

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does yichuan-w/leann do?

LEANN is a framework for local retrieval augmented generation and vector indexing. It functions as a system for building local knowledge bases and source code search engines that combine large language models with retrieved private data to generate context-aware responses.

What are the main features of yichuan-w/leann?

The main features of yichuan-w/leann are: Retrieval Augmented Generation, Local RAG Implementations, RAG Frameworks, Hybrid Search Engines, Local Knowledge Bases, Search & Information Retrieval, Semantic Search Engines, Vector Indexing.

What are some open-source alternatives to yichuan-w/leann?

Open-source alternatives to yichuan-w/leann include: mastra-ai/mastra — Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and… promtengineer/localgpt — localGPT is a private AI knowledge base and retrieval-augmented generation application. It provides a local document… imclumsypanda/langchain-chatglm — This project is a LangChain-based framework for building retrieval-augmented generation systems, autonomous agents,… redis/go-redis — This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive… chroma-core/chroma — Chroma is a specialized vector database designed to index and retrieve high-dimensional data representations for… timescale/pgai — pgai is a PostgreSQL AI toolkit and framework designed to integrate large language models and vector embeddings…

Open-source alternatives to LEANN

Similar open-source projects, ranked by how many features they share with LEANN.
  • mastra-ai/mastramastra-ai avatar

    mastra-ai/mastra

    21,221View on GitHub↗

    Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and multi-agent systems. It provides a comprehensive suite of primitives for creating resilient AI applications, including durable workflow orchestration, event-driven agent loops, and semantic memory management. By integrating these core components, the platform enables developers to build complex, multi-step processes that can reason about goals and execute tasks without manual intervention. The framework distinguishes itself through its focus on observability and secure, isolated execut

    TypeScriptagentsaichatbots
    View on GitHub↗21,221
  • promtengineer/localgptPromtEngineer avatar

    PromtEngineer/localGPT

    22,215View on GitHub↗

    localGPT is a private AI knowledge base and retrieval-augmented generation application. It provides a local document indexer, a hybrid search engine, and an inference interface to enable chatting with private documents and managing a self-hosted information repository without sending data to external servers. The system distinguishes itself through a dual-pass verification pipeline that ensures generated answers are grounded in retrieved sources, accompanied by explicit source attribution. It employs a hybrid retrieval approach combining semantic vector search with keyword matching and rerank

    Python
    View on GitHub↗22,215
  • imclumsypanda/langchain-chatglmimClumsyPanda avatar

    imClumsyPanda/langchain-ChatGLM

    38,183View on GitHub↗

    This project is a LangChain-based framework for building retrieval-augmented generation systems, autonomous agents, and multimodal chatbots. It functions as an open-source orchestrator that connects local inference engines and online APIs to manage various large language model deployments. The system distinguishes itself by providing specialized interfaces for local knowledge bases, allowing the loading and vectorization of private documents to create context-aware assistants. It also supports multimodal capabilities, enabling the processing of both text and image inputs through vision-capabl

    Python
    View on GitHub↗38,183
  • redis/go-redisredis avatar

    redis/go-redis

    22,159View on GitHub↗

    This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive interface for managing remote data stores, enabling developers to execute standard database commands, handle complex data structures, and perform asynchronous operations within Go applications. The library distinguishes itself through its support for advanced Redis capabilities, including connection pooling, pipelining, and transactional integrity. It provides specialized primitives for managing distributed clusters, including automated topology updates and request routing to sha

    Gogogolangredis
    View on GitHub↗22,159
See all 30 alternatives to LEANN→