File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 37
37
"SearchMinRelevance": 0.5, //搜索最小相关性
38
38
"SearchLimit": 3, //搜索限制
39
39
"NodeDepth": 3 //节点深度
40
+ },
41
+ "GraphSys": {
42
+ "RetryCounnt": 2 //重试次数,使用国产模型可能会出现json提取失败,增加重试次数可提高可用性
40
43
}
41
44
```
42
45
## 启动项目
@@ -84,6 +87,8 @@ builder.Configuration.GetSection("GraphOpenAI").Get<GraphOpenAIOption>();
84
87
builder.Configuration.GetSection("TextChunker").Get<TextChunkerOption>();
85
88
//配置数据库链接
86
89
builder.Configuration.GetSection("GraphDBConnection").Get<GraphDBConnectionOption>();
90
+ //系统设置
91
+ builder.Configuration.GetSection("GraphSys").Get<GraphSysOption>();
87
92
88
93
//注入AddGraphRagNet,注意,需要先注入配置文件,然后再注入GraphRagNet
89
94
builder.Services.AddGraphRagNet();
Original file line number Diff line number Diff line change 43
43
"SearchMinRelevance" : 0.5 ,
44
44
"SearchLimit" : 3 ,
45
45
"NodeDepth" : 3
46
+ },
47
+ "GraphSys" : {
48
+ "RetryCounnt" : 2 //重试次数,使用国产模型可能会出现json提取失败,增加重试次数可提高可用性
46
49
}
47
50
}
You can’t perform that action at this time.
0 commit comments