feat: 初始提交 mengya-rag 知识库项目

轻量级 Obsidian Markdown RAG 系统,包含:
- Markdown 结构感知分块(标题层级 + 代码块/表格整体保留)
- FastEmbed + BAAI/bge-small-zh-v1.5 本地向量化
- SQLite + sqlite-vec 向量库(无需外部服务)
- BM25 + 向量混合检索,RRF 融合
- 盘点模式(有哪些/列表/目录类问题)
- DeepSeek API 生成回答
- mengya-rag CLI 工具(ask/search/context/read/sync/index/status)
- docs/RAG优化方案.md 待实施优化计划

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
shumengya
2026-06-19 14:12:06 +08:00
commit c410d69970
21 changed files with 4902 additions and 0 deletions

9
scripts/sync_notes.py Normal file
View File

@@ -0,0 +1,9 @@
import os
os.environ.setdefault("TRANSFORMERS_VERBOSITY", "error")
from mengya_rag.cli import sync_notes
if __name__ == "__main__":
sync_notes()