PKB is a personal knowledge base system that turns local documents and bookmarked URLs into structured, verifiable knowledge assets using LLM distillation. Built on Java 17, Spring Boot 3, and PostgreSQL with PGvector, it implements a dual-index hybrid retrieval mechanism alongside version-controlled manual editing to ensure high retrieval accuracy. PKB exposes standard Model Context Protocol (MCP) endpoints via Server-Sent Events (SSE), allowing AI coding tools like Claude Code and Kimi Code to seamlessly search, reference, and query personal knowledge alongside an interactive web interface for citation-backed RAG chats.
主要功能
01Human-in-the-loop document editing with version diffing, rollback, and automatic vector re-indexing
020 GitHub stars
03Native MCP server implementation exposing search and document retrieval tools for AI coding assistants via SSE
04Multi-source ingestion pipeline supporting PDFs, Office docs, text files, and web pages with automated parsing and extraction
05Dual-index hybrid retrieval combining PGvector semantic vector search and keyword matching across both distilled and source text
06LLM-powered document distillation into structured Markdown summaries, key points, terminology, and raw excerpts
使用案例
01Augment AI programming assistants like Claude Code with personal or private team documentation via MCP
02Perform accurate, citation-backed RAG question answering across large collections of technical and domain documents
03Consolidate fragmented research materials, project notes, and web bookmarks into a structured, queryable knowledge base