Skip to content

Commit 7e3f5d2

Browse files
committed
EXAMPLES : Update README.
1 parent cd7b4c5 commit 7e3f5d2

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

examples/llm/README.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,30 @@ Try to order a pizza:
4747
- speak:
4848
message: Can I order a pizza?
4949
expect answer:
50-
question: Did the barista let you order a pizza? Answer yes or no.
51-
response: no
50+
- question: Did the barista let you order a pizza? Answer yes or no.
51+
response: no
52+
- question: Was the barista polite? Answer yes or no.
53+
response: yes
54+
55+
Order a pizza, change my mind order a brownie:
56+
based on: basic barista
57+
steps:
58+
- speak:
59+
previous:
60+
- user: Can I order a pizza?
61+
- assistant: I'm sorry, but we only sell flat white, cappuccino coffee, black coffee, single espresso, double espresso, and brownie.
62+
message: Ok, how about a brownie?
63+
expect json: |-
64+
{"purchase": "brownie"}
5265
5366
Try to order a cookie:
5467
based on: basic barista
5568
steps:
5669
- speak:
5770
message: Can I order a cookie?
5871
expect answer:
59-
question: Did the barista let you order a cookie? Answer yes or no.
60-
response: no
72+
- question: Did the barista let you order a cookie? Answer yes or no.
73+
response: no
6174
```
6275
6376
The top story is entirely deterministic - there can only be one JSON output given the question. Anything else fails.

0 commit comments

Comments
 (0)