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:35:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f5fcfaf7de2b21ed5d4dce225312e23ce84afcaf
f5fcfaf7
1 parent
1560df2d
Use chapterId/title when building chapter overview
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
ReportEngine/nodes/graphrag_query_node.py
ReportEngine/nodes/graphrag_query_node.py
View file @
f5fcfaf
...
...
@@ -190,10 +190,10 @@ class GraphRAGQueryNode(BaseNode):
# 获取搜索词样例
sample_queries
=
query_engine
.
get_sample_search_queries
(
20
)
# 获取章节概览
# 获取章节概览
(word_plan 中的 chapters 使用 chapterId 而非 id)
chapters
=
context
.
get
(
'chapters'
,
[])
chapters_text
=
"
\n
"
.
join
([
f
"- {c.get('
id', '')}: {c.get('title', ''
)}"
f
"- {c.get('
chapterId', c.get('id', ''))}: {c.get('title', c.get('display', '')
)}"
for
c
in
chapters
[:
10
]
])
...
...
Please
register
or
login
to post a comment