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
text: You are an AI language model developed by IBM Research. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior.
4
-
contribute: [context]
5
-
- "\nWhat is the color of the sky? Write it as JSON\n"
6
-
- model: watsonx/ibm/granite-34b-code-instruct
7
-
parser: json
8
-
spec: { color: string }
9
+
- model: ollama_chat/granite3.2:2b
10
+
def: model_output
11
+
input:
12
+
array:
13
+
- role: user
14
+
content:
15
+
text:
16
+
- for:
17
+
question: ${ data.questions }
18
+
answer: ${ data.answers }
19
+
repeat: |
20
+
${ question }
21
+
${ answer }
22
+
- >
23
+
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.
Copy file name to clipboardExpand all lines: examples/tutorial/type_checking.pdl
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ defs:
8
8
text:
9
9
- model: ollama_chat/granite3.2:2b
10
10
def: model_output
11
-
spec: {name: string, age: integer}
12
11
input:
13
12
array:
14
13
- role: user
@@ -22,7 +21,7 @@ text:
22
21
${ answer }
23
22
- >
24
23
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.
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.
0 commit comments