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 09:55:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b2c77bf3345d2bb0ab1be191288c82b28cb1f5fc
b2c77bf3
1 parent
8e4e8cfa
Incorrect iteration over graph nodes dictionary
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
ReportEngine/graphrag/query_engine.py
ReportEngine/graphrag/query_engine.py
View file @
b2c77bf
...
...
@@ -104,7 +104,8 @@ class QueryEngine:
"""关键词匹配"""
matched_ids
=
set
()
for
node
in
self
.
graph
.
nodes
:
# 使用 .values() 遍历 Node 对象,而非字典键
for
node
in
self
.
graph
.
nodes
.
values
():
# 类型筛选
if
params
.
node_types
and
node
.
type
not
in
params
.
node_types
:
continue
...
...
Please
register
or
login
to post a comment