Knowshelf

•
1
•

Manages and searches personal Markdown book knowledge bases using hybrid retrieval techniques, optimized for RAG applications.

Knowshelf is a Go-based service designed to transform personal Markdown books into a searchable knowledge base. It imports Markdown files, splits them into parent and child chunks for contextual and retrieval purposes, then stores this data locally in SQLite with vector embeddings via `sqlite-vec`. The core strength lies in its sophisticated hybrid retrieval pipeline, combining BM25 and vector search, fusing results with RRF, and optionally reranking candidates to provide highly relevant answers. This system is exposed through both a command-line interface and an MCP Streamable HTTP service, making it suitable for integrating personal knowledge into other applications, particularly for Retrieval-Augmented Generation (RAG) workflows.

主要功能

01Hybrid Retrieval (BM25 + Vector Search) with RRF Fusion
021 GitHub stars
03Flexible Parent/Child Chunking for Contextual Retrieval
04Local SQLite Storage with `sqlite-vec` for Vector Embeddings
05CLI and MCP Streamable HTTP Service for Interaction
06Configurable Embedding and Reranking Providers

使用案例

01Providing a RAG backend for language models with user-specific data
02Building and searching a personal knowledge base from Markdown documents
03Semantic search over large collections of Markdown books