Skip to content

Commit b3a251f

Browse files
committed
refactor: email example
Signed-off-by: Louis Mandel <[email protected]>
1 parent 46c322d commit b3a251f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/expectations/email.pdl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ defs:
1212
Does the following email end with Kind regards. Answer with a JSON object and a result field with value True or False only.
1313
Email: ${ response }
1414
parser: json
15-
- if: ${ result.result }
16-
def: eval
17-
then: 0
18-
else: -10
19-
- if: ${ eval < -0.3 }
15+
- if: ${ not(result.result) }
2016
then:
2117
model: ollama_chat/mistral-small:latest
2218
def: instruction

0 commit comments

Comments
 (0)