Here's the prompt being used:
Below is a string containing a MoveDateTime (Example: 9/6/2023 11:30), WorkOrder (Example: 117475-2.00), 3 TopReadings (Example TopReading1: 0.803), 3 BottomReadings (Example BottomReading1: 0.871), and a PartNumber (Example: 608-960-00) Parse the data and format it in JSON containing the datetime, WorkOrder, values from all readings as well as an average for the TopReadings and BottomReading, and the PartNumber (These averages are not provided, you will need to calculate them).
Example String:
9/6/2023 11:30 117475-2.00 0.803 0.834 0.901 0.871 0.881 0.891 608-960-00
Date Time WorkOrder TopReading1 TopReading2 TopReading3 BottomReading1 BottomReading2 BottomReading3 PartNumber
Example Output:
{
"MoveDateTime": "9/6/2023 11:30",
"WorkOrder": "117475-2.00",
"TopReadings": [0.803, 0.834, 0.901],
"TopReadingAverage": 0.846,
"BottomReadings": [0.871, 0.881, 0.891],
"BottomReadingAverage": 0.881,
"PartNumber": "608-960-00"
}
The output should be in JSON, not code.
It's also possible the input data may be out of order, attempt to sort it as need fit.
If anyone has any suggestions on how the prompt (or generation settings, more below) could be improved for more accurate and consistent answers.
During my research I found that both the ChatGPT and PaLM API will parse it, but if the temperature is too low (~0.3), the averages are incorrect.