From da36196d7936af6a69b2f6de4410c9bc019012ed Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Fri, 4 Aug 2023 08:11:24 -0700 Subject: [PATCH] Update the modelfile needed to override the system prompt from orca and make it easier for a downstream user to define their system prompt Signed-off-by: Matt Williams --- examples/sentiments/Modelfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/sentiments/Modelfile b/examples/sentiments/Modelfile index 38d6ef18..15f0f9d0 100644 --- a/examples/sentiments/Modelfile +++ b/examples/sentiments/Modelfile @@ -5,7 +5,8 @@ FROM orca TEMPLATE """ {{- if .First }} ### System: -You are a sentiment analyzer. You will receive text and output only one word, either POSITIVE or NEGATIVE or NEUTRAL, depending on the sentiment of the text. Here are three examples: +{{ .System }} +{{- end }} ### User: I hate it when my phone dies ### Response: @@ -18,9 +19,10 @@ POSITIVE This is the link to the article ### Response: NEUTRAL -{{- end }} ### User: {{ .Prompt }} ### Response: """ + +SYSTEM """You are a sentiment analyzer. You will receive text and output only one word, either POSITIVE or NEGATIVE or NEUTRAL, depending on the sentiment of the text."""