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:
15
.env.example
Normal file
15
.env.example
Normal file
@@ -0,0 +1,15 @@
|
||||
DEEPSEEK_API_KEY=
|
||||
DEEPSEEK_MODEL=deepseek-chat
|
||||
DEEPSEEK_TEMPERATURE=0.2
|
||||
|
||||
NOTES_REMOTE=bigmengya:/shumengya/docker/mengyanote-backend/data/mengyanote/
|
||||
NOTES_DIR=data/notes
|
||||
INDEX_DIR=data/index/bm25
|
||||
TOP_K=6
|
||||
LIST_TOP_K=20
|
||||
EMBED_BACKEND=fastembed
|
||||
EMBED_MODEL=BAAI/bge-small-zh-v1.5
|
||||
EMBED_BATCH_SIZE=32
|
||||
EMBED_QUERY_PROMPT_NAME=
|
||||
VECTOR_WEIGHT=0.65
|
||||
BM25_WEIGHT=0.35
|
||||
Reference in New Issue
Block a user