You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the assistant prompt we don't do a good job of explaining what a step or job is. And I think that's hurting it.
For example, I saw a question today where a user wanted to generate a dhis2 job to insert a datavalueset. The assistant generated a perfectly good create() function, but the snippet sort of asks the user to hand-write their data into it.
here's the question:
write a job for me that creates new datavaluesets under the "Approved School CHP" organization unit
Here's the assistant's code:
create("dataValueSets", {
orgUnit: "eoYV2p74eVz", // "Approved School CHP"
dataSet: "DATASET_ID_HERE", // Replace with actual dataSet ID
period: "PERIOD_HERE", // Replace with actual period, e.g., "202301" for January 2023
dataValues: [
{
dataElement: "DATA_ELEMENT_ID_1",
value: "VALUE_1"
},
{
dataElement: "DATA_ELEMENT_ID_2",
value: "VALUE_2"
}
// Add more dataValues as needed
]
});
But this isn't how workflows work, is it?
What the snippet actually needs to do is read the input - presumably from state.data - and map some values there into the create calll.
Ok, the assistant doesn't know what the incoming data or value sets look like. It hasn't been told. but it can ask, right? Or it can include some kind of stub code. It's not useful two generate example entries like this.
I think the assistant doesn't really "understand":
this is one step in a workflow which transforms data
users are not going to hand-write data
Some data is "fixed", like the org unit, but some comes from state, like dataValues
the role of state at all in this kind of function
The text was updated successfully, but these errors were encountered:
In the assistant prompt we don't do a good job of explaining what a step or job is. And I think that's hurting it.
For example, I saw a question today where a user wanted to generate a dhis2 job to insert a datavalueset. The assistant generated a perfectly good
create()
function, but the snippet sort of asks the user to hand-write their data into it.here's the question:
Here's the assistant's code:
But this isn't how workflows work, is it?
What the snippet actually needs to do is read the input - presumably from state.data - and map some values there into the create calll.
Ok, the assistant doesn't know what the incoming data or value sets look like. It hasn't been told. but it can ask, right? Or it can include some kind of stub code. It's not useful two generate example entries like this.
I think the assistant doesn't really "understand":
The text was updated successfully, but these errors were encountered: