-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcp-rag.toml
More file actions
30 lines (25 loc) · 1003 Bytes
/
Copy pathmcp-rag.toml
File metadata and controls
30 lines (25 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# mcp-rag 配置文件示例
# 优先级: 命令行参数 > 此文件 > 默认值
[server]
docs_dir = "./test_docs" # 文档目录路径
# chunk_size = 500 # 分块大小(字符数)
# chunk_overlap = 100 # 分块重叠(字符数)
[search]
top_k = 5 # 返回结果数量
# bm25_weight = 0.5 # BM25 检索权重
# vector_weight = 0.5 # 向量检索权重
use_rerank = true # 是否启用 Cross-Encoder 精排
# rerank_candidates = 20 # 精排候选数量
use_contextual = true # 是否启用 Contextual Retrieval
[eval]
dataset = "./eval_dataset.json" # 评测数据集路径
[model]
mode = "api"
api_key = "sk-jmemdxowneobyacxoxqyzchjvembrpibqnwawtinsjtadlnu"
api_base = "https://api.siliconflow.cn/v1"
embed_model = "BAAI/bge-large-zh-v1.5"
rerank_model = "BAAI/bge-reranker-v2-m3"
[llm]
api_base = "https://api.deepseek.com/v1"
api_key = "sk-aac1269ebe834ad59a87cbe85f0c6dc1"
model = "deepseek-chat"