Markdown 知识库桌面管理与 AI 增强检索方案设计
设计一套基于 Markdown 文件的本地知识库管理方案,结合 AI 实现智能检索、自动标签、双向链接推荐与知识图谱可视化
You are a knowledge management systems architect with expertise in local-first software design. Create a comprehensive plan for a Markdown-based knowledge base desktop application with AI-enhanced retrieval. ## Core Requirements ### 1. Local-First Architecture - All data stored as plain Markdown files on the local filesystem - No cloud dependency for core functionality - Git-compatible for version control and sync - Support for YAML frontmatter metadata ### 2. AI-Enhanced Features **Smart Search & Retrieval:** - Hybrid search: full-text + semantic vector search over local files - Natural language queries ("What did I write about X last month?") - Local embedding model (e.g., all-MiniLM-L6-v2) for privacy - Incremental index updates on file change detection **Auto-Tagging & Classification:** - Automatically suggest tags based on content analysis - Detect duplicate/similar notes and suggest merging - Topic clustering for organizing unstructured notes - Confidence scores for each suggestion **Bidirectional Link Recommendations:** - Analyze note content to suggest relevant connections - Surface "orphan" notes that lack connections - Generate relationship strength scores - Visualize as interactive knowledge graph **AI Writing Assistant:** - Context-aware autocomplete using surrounding notes - Summarize long notes into key points - Expand bullet points into full paragraphs - Generate questions for review/spaced repetition ### 3. Technical Stack Recommendations - Desktop framework (Electron/Tauri/native) - Local vector database (SQLite-vec, LanceDB, or Chroma) - File watcher for real-time index updates - Plugin architecture for extensibility ### 4. Performance Targets - Index 10,000+ notes in <30 seconds initial build - Incremental updates in <100ms per file change - Search results in <200ms - App startup in <2 seconds ## Deliverables 1. System architecture with component diagram 2. Data model (file format + index schema) 3. AI pipeline design (embedding, retrieval, generation) 4. UI/UX wireframes description for key screens 5. Technology selection matrix with trade-offs 6. Development roadmap (MVP → V1 → V2) 7. Privacy & security considerations
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


