architojha commited on
Commit
f1155ac
·
1 Parent(s): fc343df

updating prompt

Browse files
Files changed (1) hide show
  1. src/utils/helper.py +19 -23
src/utils/helper.py CHANGED
@@ -30,7 +30,6 @@ class HelperClass:
30
  2. Construct Edges Between Nodes
31
  - Determine the logical sequence of tasks from the project description.
32
  - Identify source and target modules for each transition based on the task flow.
33
- - The graph begins with a special "Start" node. Edges must connect from <Start> to the first module in the pipeline.
34
  - For each connection, output the following information:
35
  - Source Node: The unique ID of the starting module. ( Used the ids for each module generated in Step 1)
36
  - Target Node: The unique ID of the destination module. ( Used the ids for each module generated in Step 1)
@@ -87,15 +86,14 @@ class HelperClass:
87
  <5w01f>Evaluate B</5w01f>
88
  <z4bun>ComparePerformance</z4bun>
89
  <zj2pb>TriggerDeployment</zj2pb>
90
- <Edge 1>( sourceNode="<Start>" | targetNode="<p83fd>" | task = "From Start node to Ingesting Data" )</Edge 1>
91
- <Edge 2>( sourceNode="<p83fd>" | targetNode="<sb9ba>" | task = "Ingesting Data to Augment Data" )</Edge 2>
92
- <Edge 3>( sourceNode="<sb9ba>" | targetNode="<bxt2w>" | task = "Augmenting Data to Train model A" )</Edge 3>
93
- <Edge 4>( sourceNode="<sb9ba>" | targetNode="<d1ep3>" | task = "Augmenting Data to Train model B" )</Edge 4>
94
- <Edge 5>( sourceNode="<bxt2w>" | targetNode="<b9lca>" | task = "Training A to Evaluate model A" )</Edge 5>
95
- <Edge 6>( sourceNode="<d1ep3>" | targetNode="<5w01f>" | task = "Training B to Evaluate model B" )</Edge 6>
96
- <Edge 7>( sourceNode="<b9lca>" | targetNode="<z4bun>" | task = "Evaluate model A to Compare Performance" )</Edge 7>
97
- <Edge 8>( sourceNode="<5w01f>" | targetNode="<z4bun>" | task = "Evaluate model B to Compare Performance" )</Edge 8>
98
- <Edge 9>( sourceNode="<z4bun>" | targetNode="<zj2pb>" | task = "Compare Performance to Trigger Deployment" )</Edge 9>
99
 
100
  #############################
101
 
@@ -138,12 +136,11 @@ class HelperClass:
138
  <p004>Train</p004>
139
  <p005>Evaluate</p005>
140
  <p006>TriggerDeployment</p006>
141
- <Edge 1>( sourceNode="<Start>" | targetNode="<p001>" | task="From Start to Ingesting Data" )</Edge 1>
142
- <Edge 2>( sourceNode="<p001>" | targetNode="<p002>" | task="Ingesting Data to Augmenting Data" )</Edge 2>
143
- <Edge 3>( sourceNode="<p002>" | targetNode="<p003>" | task="Augmenting Data to Generating Synthetic Data" )</Edge 3>
144
- <Edge 4>( sourceNode="<p003>" | targetNode="<p004>" | task="Generating Data to Training Model" )</Edge 4>
145
- <Edge 5>( sourceNode="<p004>" | targetNode="<p005>" | task="Training Model to Evaluating Performance" )</Edge 5>
146
- <Edge 6>( sourceNode="<p005>" | targetNode="<p006>" | task="Evaluating Model to Triggering Deployment" )</Edge 6>
147
 
148
  #############################
149
 
@@ -188,13 +185,12 @@ class HelperClass:
188
  <m005>Train Stage 2</m005>
189
  <m006>Evaluate</m006>
190
  <m007>TriggerDeployment</m007>
191
- <Edge 1>( sourceNode="<Start>" | targetNode="<m001>" | task="From Start to Ingesting Data" )</Edge 1>
192
- <Edge 2>( sourceNode="<m001>" | targetNode="<m002>" | task="Ingesting Data to Augmenting Data Stage 1" )</Edge 2>
193
- <Edge 3>( sourceNode="<m002>" | targetNode="<m003>" | task="Augmenting Data Stage 1 to Training Stage 1" )</Edge 3>
194
- <Edge 4>( sourceNode="<m003>" | targetNode="<m004>" | task="Training Stage 1 to Augmenting Data Stage 2" )</Edge 4>
195
- <Edge 5>( sourceNode="<m004>" | targetNode="<m005>" | task="Augmenting Data Stage 2 to Training Stage 2" )</Edge 5>
196
- <Edge 6>( sourceNode="<m005>" | targetNode="<m006>" | task="Training Stage 2 to Evaluating Model" )</Edge 6>
197
- <Edge 7>( sourceNode="<m006>" | targetNode="<m007>" | task="Evaluating Model to Triggering Deployment" )</Edge 7>
198
 
199
  #############################
200
 
 
30
  2. Construct Edges Between Nodes
31
  - Determine the logical sequence of tasks from the project description.
32
  - Identify source and target modules for each transition based on the task flow.
 
33
  - For each connection, output the following information:
34
  - Source Node: The unique ID of the starting module. ( Used the ids for each module generated in Step 1)
35
  - Target Node: The unique ID of the destination module. ( Used the ids for each module generated in Step 1)
 
86
  <5w01f>Evaluate B</5w01f>
87
  <z4bun>ComparePerformance</z4bun>
88
  <zj2pb>TriggerDeployment</zj2pb>
89
+ <Edge 1>( sourceNode="<p83fd>" | targetNode="<sb9ba>" | task = "Ingesting Data to Augment Data" )</Edge 1>
90
+ <Edge 2>( sourceNode="<sb9ba>" | targetNode="<bxt2w>" | task = "Augmenting Data to Train model A" )</Edge 2>
91
+ <Edge 3>( sourceNode="<sb9ba>" | targetNode="<d1ep3>" | task = "Augmenting Data to Train model B" )</Edge 3>
92
+ <Edge 4>( sourceNode="<bxt2w>" | targetNode="<b9lca>" | task = "Training A to Evaluate model A" )</Edge 4>
93
+ <Edge 5>( sourceNode="<d1ep3>" | targetNode="<5w01f>" | task = "Training B to Evaluate model B" )</Edge 5>
94
+ <Edge 6>( sourceNode="<b9lca>" | targetNode="<z4bun>" | task = "Evaluate model A to Compare Performance" )</Edge 6>
95
+ <Edge 7>( sourceNode="<5w01f>" | targetNode="<z4bun>" | task = "Evaluate model B to Compare Performance" )</Edge 7>
96
+ <Edge 8>( sourceNode="<z4bun>" | targetNode="<zj2pb>" | task = "Compare Performance to Trigger Deployment" )</Edge 8>
 
97
 
98
  #############################
99
 
 
136
  <p004>Train</p004>
137
  <p005>Evaluate</p005>
138
  <p006>TriggerDeployment</p006>
139
+ <Edge 1>( sourceNode="<p001>" | targetNode="<p002>" | task="Ingesting Data to Augmenting Data" )</Edge 1>
140
+ <Edge 2>( sourceNode="<p002>" | targetNode="<p003>" | task="Augmenting Data to Generating Synthetic Data" )</Edge 2>
141
+ <Edge 3>( sourceNode="<p003>" | targetNode="<p004>" | task="Generating Data to Training Model" )</Edge 3>
142
+ <Edge 4>( sourceNode="<p004>" | targetNode="<p005>" | task="Training Model to Evaluating Performance" )</Edge 4>
143
+ <Edge 5>( sourceNode="<p005>" | targetNode="<p006>" | task="Evaluating Model to Triggering Deployment" )</Edge 5>
 
144
 
145
  #############################
146
 
 
185
  <m005>Train Stage 2</m005>
186
  <m006>Evaluate</m006>
187
  <m007>TriggerDeployment</m007>
188
+ <Edge 1>( sourceNode="<m001>" | targetNode="<m002>" | task="Ingesting Data to Augmenting Data Stage 1" )</Edge 1>
189
+ <Edge 2>( sourceNode="<m002>" | targetNode="<m003>" | task="Augmenting Data Stage 1 to Training Stage 1" )</Edge 2>
190
+ <Edge 3>( sourceNode="<m003>" | targetNode="<m004>" | task="Training Stage 1 to Augmenting Data Stage 2" )</Edge 3>
191
+ <Edge 4>( sourceNode="<m004>" | targetNode="<m005>" | task="Augmenting Data Stage 2 to Training Stage 2" )</Edge 4>
192
+ <Edge 5>( sourceNode="<m005>" | targetNode="<m006>" | task="Training Stage 2 to Evaluating Model" )</Edge 6>
193
+ <Edge 6>( sourceNode="<m006>" | targetNode="<m007>" | task="Evaluating Model to Triggering Deployment" )</Edge 6>
 
194
 
195
  #############################
196