Skip to content
Open
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
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/badSchemaRef.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ output:
schema: badSchemaRef2
---

doesn't matter
doesn't matter
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/kitchensink.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ toolChoice: required
metadata:
foo: bar
---
{{role "system"}} Hello {{history}} from the prompt file {{ subject }}
{{role "system"}} Hello {{history}} from the prompt file {{ subject }}
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/output.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ output:
bar: string
---

Hi {{ name }}
Hi {{ name }}
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/schemaRef.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ output:
schema: myOutputSchema
---

Write a poem about {{foo}}.
Write a poem about {{foo}}.
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/test.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
config:
temperature: 11
---
Hello from the prompt file
Hello from the prompt file
2 changes: 1 addition & 1 deletion js/genkit/tests/prompts/toolPrompt.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ description: prompt in a file
tools:
- agentA
---
{{ role "system" }} {{ @state.name }} toolPrompt prompt
{{ role "system" }} {{ @state.name }} toolPrompt prompt
4 changes: 2 additions & 2 deletions js/testapps/custom-evaluators/prompts/deliciousness.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ input:
schema:
output: string
---
You are a food critic with a wide range in taste. Given the output, decide if it sounds delicious and provide your reasoning. Use only "yes" (if delicous), "no" (if not delicious), "maybe" (if you can't decide) as the verdict.
You are a food critic with a wide range in taste. Given the output, decide if it sounds delicious and provide your reasoning. Use only "yes" (if delicious), "no" (if not delicious), "maybe" (if you can't decide) as the verdict.

Here are a few examples:

Expand All @@ -26,4 +26,4 @@ Here is a new submission to assess:

Output:
{{output}}
Response:
Response:
4 changes: 2 additions & 2 deletions js/testapps/custom-evaluators/prompts/funniness.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Here is an example of an output that is a funny joke:
Output:
Why did the scarecrow win an award? Because he was outstanding in his field!
Response:
{ "reason": "This is a classic, simple joke with a play on words that's likely to elicit a chuckle.", "verdict":"FUNNY"}
{ "reason": "This is a classic, simple joke with a play on words that's likely to elicit a chuckle.", "verdict":"FUNNY_JOKE"}

Here is an example of an output that is not a funny joke:

Output:
Why did the chicken cross the road? To get to the other side!
Response:
{ "reason": "This is a classic joke that is not funny because it has been overused. It might elicit a sigh or a sarcastic haha.", "verdict":"NOT_FUNNY"}
{ "reason": "This is a classic joke that is not funny because it has been overused. It might elicit a sigh or a sarcastic haha.", "verdict":"NOT_FUNNY_JOKE"}

Here is an example of an output that is an offensive joke:

Expand Down
2 changes: 1 addition & 1 deletion js/testapps/custom-evaluators/prompts/pii_detection.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Response:

Output:
We're meeting up at my house for dinner before heading to the show - 00 Nowhere Stree, Nowhere, AK 00000. If you miss me, send me a message on instagram my handle is @faketyfakefakefake.
Output:
Response:
{ "reason": "This response includes an address and an instagram handle, which could be used to identify a person.", "verdict":true}

Here is a new submission to assess:
Expand Down