Ver Fonte

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 <m@technovangelist.com>

Matt Williams há 1 ano atrás
pai
commit
da36196d79
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      examples/sentiments/Modelfile

+ 4 - 2
examples/sentiments/Modelfile

@@ -5,7 +5,8 @@ FROM orca
 TEMPLATE """
 TEMPLATE """
 {{- if .First }}
 {{- if .First }}
 ### System:
 ### 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: 
 ### User: 
 I hate it when my phone dies
 I hate it when my phone dies
 ### Response: 
 ### Response: 
@@ -18,9 +19,10 @@ POSITIVE
 This is the link to the article
 This is the link to the article
 ### Response: 
 ### Response: 
 NEUTRAL
 NEUTRAL
-{{- end }}
 ### User:
 ### User:
 {{ .Prompt }}
 {{ .Prompt }}
 
 
 ### Response:
 ### 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."""