Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions examples/demo/1-gen-data.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ text:
def: model_output
spec: {name: str, age: int}
input:
text:
- for:
question: ${ data.questions }
answer: ${ data.answers }
repeat: |
${ question }
${ answer }
- >
Question: Create a JSON object with fields 'name' and 'age'
and set them appropriately. Write the age in letters.
array:
- role: user
content:
text:
- for:
question: ${ data.questions }
answer: ${ data.answers }
repeat: |
${ question }
${ answer }
- >
Question: Generate only a JSON object with fields 'name' and 'age' and set them appropriately. Write the age all in letters. Only generate a single JSON object and nothing else.
parser: yaml
parameters:
stop_sequences: "\n"
stop_sequences: "Question"
temperature: 0


7 changes: 2 additions & 5 deletions examples/demo/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ questions:
Question: Write a YAML object with 3 fields 'number' and 'street' and 'town' set to '10', 'Miller Road', 'Armonk' respectively.

answers:
- a: 0
b: 0
- { "a": 0, "b": 0 }

- number: 10
street: miller Road
town: armonk
- { "number": 10, "street": "miller Road", "town": "armonk" }
2 changes: 0 additions & 2 deletions examples/gsm8k/README.md

This file was deleted.

86 changes: 0 additions & 86 deletions examples/gsm8k/math.pdl

This file was deleted.

85 changes: 0 additions & 85 deletions examples/gsm8k/math_no_sd.pdl

This file was deleted.

Loading