Skip to content

Commit 05c827d

Browse files
refactor: rename mathod_params
1 parent 5faf16d commit 05c827d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

graphgen/configs/aggregated_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ quiz_and_judge: # quiz and test whether the LLM masters the knowledge points
1212
re_judge: false # whether to re-judge the existing quiz samples
1313
partition: # graph partition configuration
1414
method: ece # ece is a custom partition method based on comprehension loss
15-
ece_params:
15+
method_params:
1616
bidirectional: true # whether to traverse the graph in both directions
1717
edge_sampling: max_loss # edge sampling strategy, support: random, max_loss, min_loss
1818
expand_method: max_width # expand method, support: max_width, max_depth

graphgen/configs/atomic_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ quiz_and_judge: # quiz and test whether the LLM masters the knowledge points
1212
re_judge: false # whether to re-judge the existing quiz samples
1313
partition: # graph partition configuration
1414
method: ece # ece is a custom partition method based on comprehension loss
15-
ece_params:
15+
method_params:
1616
bidirectional: true # whether to traverse the graph in both directions
1717
edge_sampling: max_loss # edge sampling strategy, support: random, max_loss, min_loss
1818
expand_method: max_width # expand method, support: max_width, max_depth

graphgen/configs/cot_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ quiz_and_judge: # quiz and test whether the LLM masters the knowledge points
1010
enabled: false
1111
partition: # graph partition configuration
1212
method: leiden # leiden is a community detection algorithm
13-
leiden_params:
13+
method_params:
1414
max_size: 20 # Maximum size of communities
1515
use_lcc: false
1616
random_seed: 42

graphgen/configs/multi_hop_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ quiz_and_judge: # quiz and test whether the LLM masters the knowledge points
1212
re_judge: false # whether to re-judge the existing quiz samples
1313
partition: # graph partition configuration
1414
method: ece # ece is a custom partition method based on comprehension loss
15-
ece_params:
15+
method_params:
1616
bidirectional: true # whether to traverse the graph in both directions
1717
edge_sampling: max_loss # edge sampling strategy, support: random, max_loss, min_loss
1818
expand_method: max_width # expand method, support: max_width, max_depth

graphgen/graphgen.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async def generate(self, partition_config: Dict, generate_config: Dict):
242242
self.synthesizer_llm_client,
243243
self.tokenizer_instance,
244244
self.graph_storage,
245-
partition_config["ece_params"],
245+
partition_config["method_params"],
246246
self.text_chunks_storage,
247247
self.progress_bar,
248248
)
@@ -251,7 +251,7 @@ async def generate(self, partition_config: Dict, generate_config: Dict):
251251
self.synthesizer_llm_client,
252252
self.tokenizer_instance,
253253
self.graph_storage,
254-
partition_config["ece_params"],
254+
partition_config["method_params"],
255255
self.text_chunks_storage,
256256
self.progress_bar,
257257
)
@@ -260,15 +260,15 @@ async def generate(self, partition_config: Dict, generate_config: Dict):
260260
self.synthesizer_llm_client,
261261
self.tokenizer_instance,
262262
self.graph_storage,
263-
partition_config["ece_params"],
263+
partition_config["method_params"],
264264
self.text_chunks_storage,
265265
self.progress_bar,
266266
)
267267
elif mode == "cot":
268268
results = await generate_cot(
269269
self.graph_storage,
270270
self.synthesizer_llm_client,
271-
method_params=partition_config["leiden_params"],
271+
method_params=partition_config["method_params"],
272272
)
273273
else:
274274
raise ValueError(f"Unknown generation mode: {mode}")

0 commit comments

Comments
 (0)