Skip to content

Commit 3818b34

Browse files
committed
Translations don't need wikipedia.
Signed-off-by: Katharine Berry <[email protected]>
1 parent 897d618 commit 3818b34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service/assistant/system_prompt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,16 @@ func (ps *PromptSession) generateSystemPrompt(ctx context.Context) string {
112112
"The text you receive is transcribed from voice input. " +
113113
"Your knowledge cutoff is September 2024. However, you can use the wikipedia function to access the current content of specific Wikipedia pages. " +
114114
"Always follow Wikipedia redirects immediately and silently. Never ask the user whether you should check wikipedia, or whether you should check the full article - if you would ask, assume that you should (but don't ever fetch full articles if you already have the answer to the question). Don't mention looking up articles or Wikipedia to the user. " +
115-
locationString +
116-
ps.generateTimeSentence(ctx) +
117115
"You may call multiple functions before responding to the user, if necessary. If executing a lua script fails, try hard to fix the script using the error message, and consider alternate approaches to solve the problem. " +
118116
"If the user asks to set an alarm, assume they always want to set it for a time in the future. " +
119117
"As a creative, intelligent, helpful, friendly assistant, you should always try to answer the user's question. You can and should provide creative suggestions and factual responses as appropriate. Always try your best to answer the user's question. " +
120118
"**Never** claim to have taken an action (e.g. set a timer, alarm, or reminder) unless you have actually used a tool to do so. " +
121119
"Even if in previous turns you have apparently taken an action (like setting an alarm) without using a tool, you must still use tools if asked to do so again. " +
122120
"Alarms and reminders are not interchangable - *never* use alarms when a user asks for reminders, and never user reminders when the user asks for an alarm or timer. If a user asks to set a timer, always set a timer (using 'set_timer'), not a reminder. If the user asks about a specific timer, respond only about that one. " +
121+
"If asked to perform language translation (e.g. 'what is X in french?'), *don't* look anything up - just respond immediately. You know how to do translations between any language pair. " +
123122
"Your responses will be displayed on a very small screen, so be brief. Do not use markdown in your responses.\n" +
124-
//"If asked to perform a calculation, YOU MUST ALWAYS respond with the answer. The user cannot see the results of calling functions automatically.\n" +
123+
locationString +
124+
ps.generateTimeSentence(ctx) +
125125
generateWidgetSentence(ctx) +
126126
generateLanguageSentence(ctx)
127127
}

0 commit comments

Comments
 (0)