Skip to content

Instantly share code, notes, and snippets.

@phoughton
Created February 25, 2025 15:38
Show Gist options
  • Select an option

  • Save phoughton/06c7854fde8c3b866b355e7cfb587132 to your computer and use it in GitHub Desktop.

Select an option

Save phoughton/06c7854fde8c3b866b355e7cfb587132 to your computer and use it in GitHub Desktop.
This is a simple recs testing prompt, that is used to create a couple of data files that are combined by a system to produce the defined output.
This is a pipe delimited output file:
|ID1|ID2|Amount|Ref|XYMult|
|888|8294|100|24235|15|
|101|9378|205|9350|20.67|
Create 2 files, one in YAML and one in JSON that when combined create the above file.
The rules for combining are as follows:
ID1 comes from the YAML file.
ID2 comes from the JSON file.
The amount is derived by adding the Amounts in both the YAML and the JSON file.
The Ref is always taken from the file that has the highest Amount.
XYMult is the multiple of the X value from the JSON file and the Y value from the YAML file.
The JSON file needs to be structured like this:
[
{
"ID2": 4567,
"Amount": 102,
"Ref": 43434,
"X": 2
}
]
And the YAML is like:
- ID1: 888
Amount: 70
Ref: 24235
"Y": 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment