Skip to content

Commit df2b3d1

Browse files
committed
updates
Signed-off-by: Mandana Vaziri <[email protected]>
1 parent c573945 commit df2b3d1

14 files changed

+137
-349
lines changed

docs/tutorial.md

Lines changed: 117 additions & 329 deletions
Large diffs are not rendered by default.

examples/talk/2-model-chaining.pdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ text:
44
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
parameters:
66
stop_sequences: "!"
7-
- "\nTranslate this to French\n"
7+
- "\nDid you just say Hello?\n"
88
- model: replicate/ibm-granite/granite-3.0-8b-instruct
99
parameters:
1010
stop_sequences: "!"

examples/tutorial/calling_llm.pdl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ text:
33
- "Hello\n"
44
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
parameters:
6-
decoding_method: greedy
76
stop_sequences: '!'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
description: Hello world calling a model
22
text:
3-
- "Hello, "
3+
- "Hello\n"
44
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
input:
6-
Translate the word 'world' to French
6+
Translate the word 'Hello' to French
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
description: Hello world calling a model
22
text:
3-
- "Hello, "
4-
- model: watsonx/ibm/granite-20b-multilingual
3+
- "Hello\n"
4+
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
input:
66
array:
77
- role: system
88
content: You are a helpful assistant that is fluent in French.
99
- role: user
10-
content: Translate the word 'world' to French
10+
content: Translate the word 'Hello' to French

examples/tutorial/model_chaining.pdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ text:
44
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
parameters:
66
stop_sequences: "!"
7-
- "\nTranslate this to French\n"
7+
- "\nDid you just say Hello?\n"
88
- model: replicate/ibm-granite/granite-3.0-8b-instruct
99
parameters:
1010
stop_sequences: "!"
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
description: Hello world with variable def and use
22
text:
3-
- Hello,
3+
- "Hello\n"
44
- model: replicate/ibm-granite/granite-3.0-8b-instruct
55
def: GEN
66
parameters:
7-
decoding_method: greedy
87
stop_sequences: '!'
9-
include_stop_sequence: true
108
- "\nGEN is equal to: ${ GEN }"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The weather in Yorktown Heights, New York, USA is currently sunny with a temperature of 46°F (7.8°C). The wind is blowing at a speed of 4.5 mph (7.2 kph) from the north-northwest (NNW) direction. The pressure is 30.39 inches of mercury (1029.0 mb). Humidity is at 65% and the dew point is 32.7°F (0.4°C). Visibility is 9 miles (16.0 km). There is no precipitation and the UV index is 0. The wind gusts can reach up to 14.5 kph (9.0 mph).
1+
The current weather in Yorktown Heights, New York, USA is sunny with a temperature of 13.3°C (55.9°F). The wind is blowing at a speed of 7.6 mph (12.2 kph) from the north (N) direction. The pressure is 1031.0 mb (30.43 inches). The humidity is 42% and the dew point is 3.5°C (38.3°F). The visibility is 16.0 km (9.0 miles). The UV index is 1.3 and the wind gusts are up to 9.3 mph (14.9 kph).
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Hello
22
Hello
3-
Translate this to French
4-
I'm sorry for the confusion, but it seems like you didn't provide any text to translate. Could you please provide the text you'd like me to translate into French?
3+
Did you just say Hello?
4+
Yes, I did. How can I assist you today?
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Hello, The word 'world' translates to 'monde' in French.
1+
Hello
2+
The word 'Hello' translates to 'Bonjour' in French.

0 commit comments

Comments
 (0)