File size: 6,618 Bytes
8461958
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
  "kg": {
    "adapter": "synth_kg_text.kg.hetionet:HetionetAdapter",
    "name": "hetionet",
    "version": "v1.0",
    "raw_path": null,
    "cache_dir": "/work/evaluation/synth-kg-text/.cache/kg",
    "artifacts_dir": "/work/evaluation/synth-kg-text/artifacts",
    "source_url": "https://media.githubusercontent.com/media/hetio/hetionet/main/hetnet/json/hetionet-v1.0.json.bz2",
    "sha256": "a342ab57e9073e6c02bb5e109d1f16917e6f933be4e5c77ebbaebfa26b984c19",
    "expected_size": 16112094,
    "expected_nodes": 47031,
    "expected_edges": 2250197,
    "expected_node_types": 11,
    "expected_relation_types": 24,
    "terminology": "Hetionet v1.0",
    "metapaths": []
  },
  "dataset": {
    "allocation": {
      "mode": "weights",
      "target_examples": null,
      "tasks": {
        "atomic_qa": 0.2,
        "mcq": 0.16,
        "support_classification": 0.16,
        "relation_classification": 0.16,
        "multihop_qa": 0.2,
        "graph_to_text": 0.08,
        "text_to_graph": 0.04
      }
    },
    "oversampling_fraction": 0.2,
    "seed": 42,
    "splits": {
      "train": 0.9,
      "validation": 0.05,
      "test": 0.05
    },
    "max_message_tokens": 2048,
    "audit_fraction": 0.01
  },
  "tasks": {
    "atomic_qa": {
      "class_path": "synth_kg_text.tasks.generators:AtomicQAGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "mcq": {
      "class_path": "synth_kg_text.tasks.generators:MCQGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "support_classification": {
      "class_path": "synth_kg_text.tasks.generators:SupportClassificationGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "relation_classification": {
      "class_path": "synth_kg_text.tasks.generators:RelationClassificationGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "multihop_qa": {
      "class_path": "synth_kg_text.tasks.generators:MultiHopQAGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.5,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "graph_to_text": {
      "class_path": "synth_kg_text.tasks.generators:GraphToTextGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    },
    "text_to_graph": {
      "class_path": "synth_kg_text.tasks.generators:TextToGraphGenerator",
      "max_variants_per_unit": 3,
      "relation_strategy": "inverse_sqrt",
      "relation_weights": {},
      "llm_rewrite": true,
      "max_generation_attempts": 3,
      "context_grounded_fraction": 0.0,
      "generate_negatives": false,
      "negative_fraction": 0.5,
      "hard_negative_fraction": 0.5,
      "min_neighborhood_edges": 3,
      "max_neighborhood_edges": 7,
      "degree_cap": 5000,
      "max_neighborhood_jaccard": 0.5,
      "max_neighborhoods_per_node": 3,
      "neighborhood_sampling_attempts": 64
    }
  },
  "llm": {
    "backend": "openai_compatible",
    "base_url": "http://127.0.0.1:30000/v1",
    "model": "Qwen/Qwen3.6-35B-A3B",
    "api_key_env": null,
    "temperature": 0.7,
    "max_tokens": 2048,
    "concurrency": 24
  },
  "prompts": {
    "fixed_templates_path": "/work/evaluation/synth-kg-text/src/synth_kg_text/prompt_templates/fixed.yaml",
    "llm_templates_path": "/work/evaluation/synth-kg-text/src/synth_kg_text/prompt_templates/llm-natural.yaml",
    "llm_transform": null,
    "natural_forbidden_terms": [
      "Hetionet",
      "knowledge graph",
      "knowledge-graph",
      "KG",
      "KGs",
      "entity",
      "entities",
      "relation",
      "relations",
      "relation ID",
      "canonical relation",
      "node ID",
      "node IDs",
      "edge ID",
      "edge IDs",
      "source triple",
      "metapath",
      "forward",
      "inverse",
      "recorded"
    ]
  }
}