Skip to content

Commit 983525c

Browse files
committed
update readme
1 parent 3ec6e96 commit 983525c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"SearchMinRelevance": 0.5, //搜索最小相关性
3838
"SearchLimit": 3, //搜索限制
3939
"NodeDepth": 3 //节点深度
40+
},
41+
"GraphSys": {
42+
"RetryCounnt": 2 //重试次数,使用国产模型可能会出现json提取失败,增加重试次数可提高可用性
4043
}
4144
```
4245
## 启动项目
@@ -84,6 +87,8 @@ builder.Configuration.GetSection("GraphOpenAI").Get<GraphOpenAIOption>();
8487
builder.Configuration.GetSection("TextChunker").Get<TextChunkerOption>();
8588
//配置数据库链接
8689
builder.Configuration.GetSection("GraphDBConnection").Get<GraphDBConnectionOption>();
90+
//系统设置
91+
builder.Configuration.GetSection("GraphSys").Get<GraphSysOption>();
8792
8893
//注入AddGraphRagNet,注意,需要先注入配置文件,然后再注入GraphRagNet
8994
builder.Services.AddGraphRagNet();

src/GraphRag.Net.Web/appsettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@
4343
"SearchMinRelevance": 0.5,
4444
"SearchLimit": 3,
4545
"NodeDepth": 3
46+
},
47+
"GraphSys": {
48+
"RetryCounnt": 2 //重试次数,使用国产模型可能会出现json提取失败,增加重试次数可提高可用性
4649
}
4750
}

0 commit comments

Comments
 (0)