Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-12-19 10:48:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d71073ad1160776818427911051e8020ac273319
d71073ad
1 parent
bc493dd9
Allows changing GRAPHRAG_ENABLED and GRAPHRAG_MAX_QUERIES on the front end
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
config.py
templates/index.html
config.py
View file @
d71073a
...
...
@@ -76,6 +76,10 @@ class Settings(BaseSettings):
KEYWORD_OPTIMIZER_BASE_URL
:
Optional
[
str
]
=
Field
(
None
,
description
=
"Keyword Optimizer BaseUrl,可按所选服务配置"
)
KEYWORD_OPTIMIZER_MODEL_NAME
:
Optional
[
str
]
=
Field
(
None
,
description
=
"Keyword Optimizer LLM 模型名称,例如 qwen-plus"
)
# ================== GraphRAG 配置 ====================
GRAPHRAG_ENABLED
:
bool
=
Field
(
False
,
description
=
"是否启用GraphRAG知识图谱功能(true/false)"
)
GRAPHRAG_MAX_QUERIES
:
int
=
Field
(
3
,
description
=
"GraphRAG每个章节生成前的最大查询次数"
)
# ================== 网络工具配置 ====================
# Tavily API(申请地址:https://www.tavily.com/)
TAVILY_API_KEY
:
Optional
[
str
]
=
Field
(
None
,
description
=
"Tavily API(申请地址:https://www.tavily.com/)API密钥,用于Tavily网络搜索"
)
...
...
templates/index.html
View file @
d71073a
...
...
@@ -2120,6 +2120,14 @@
{
key
:
'BOCHA_WEB_SEARCH_API_KEY'
,
label
:
'Bocha API Key'
,
type
:
'password'
,
condition
:
{
key
:
'SEARCH_TOOL_TYPE'
,
value
:
'BochaAPI'
}
},
{
key
:
'ANSPIRE_API_KEY'
,
label
:
'Anspire API Key'
,
type
:
'password'
,
condition
:
{
key
:
'SEARCH_TOOL_TYPE'
,
value
:
'AnspireAPI'
}
}
]
},
{
title
:
'GraphRAG 图谱增强'
,
subtitle
:
'章节生成前的知识图谱查询,默认关闭'
,
fields
:
[
{
key
:
'GRAPHRAG_ENABLED'
,
label
:
'是否启用'
,
type
:
'select'
,
options
:
[
'False'
,
'True'
]
},
{
key
:
'GRAPHRAG_MAX_QUERIES'
,
label
:
'每章节查询次数上限'
,
type
:
'number'
,
condition
:
{
key
:
'GRAPHRAG_ENABLED'
,
value
:
'True'
}
}
]
}
];
...
...
Please
register
or
login
to post a comment