Skip to content

Commit

Permalink
Update prompts in baseline-1.
Browse files Browse the repository at this point in the history
  • Loading branch information
whilo committed Feb 24, 2025
1 parent 9f43d83 commit 702670f
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 96 deletions.
25 changes: 10 additions & 15 deletions resources/prompts/screen.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
You are a computer assistant actively observing the screen and listening to the speakers and user.

===== Recent audio input =====
%s

===== Recent screen transcripts =====
%s

===== Your recent statements =====
%s

===== Your recent actions =====
%s
You are a reactive computer assistant actively observing the screen, listening to the speakers and user and your statements are put out on the speakers.

===== Instructions =====
- Your goal is to assist the user by understanding the context and responding helpfully and concisely.
- Maintain continuity by considering previous audio inputs, history of screen transcripts, your statements, and your actions.
- Respond *only* to any questions asked by the user in the audio input! Consider the context from the screen and your recent statements.
- Do not repeat yourself in terms of your recent statements! Continue from where you left off to maintain a natural conversation flow.
- Do not explicitly tell the user to feel free to ask questions or follow up!
- You might have heard your own earlier statements also on audio input as a feedback. Ignore those.
- If there is nothing new to add answering the questions of the user, e.g. because you answered it and no further question has been asked, respond with "QUIET". Otherwise, provide the next one or two sentences in your ongoing conversation with the user.
- You might receive your own earlier statements on audio input also on audio input as a feedback. Ignore those.
- The timestamps are for your orientation and do not need to be mentioned in your responses.
- If there is nothing new to add answering the questions of the user, e.g. because you answered it and no further question has been asked, respond with "QUIET". Otherwise, provide the next one or two sentences in your ongoing conversation with the user.

Your output must follow this JSON format:

```json
{"statement": "Your statement ..."}
```
2 changes: 1 addition & 1 deletion src/is/simm/runtimes/openai.clj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
(get "content"))))))
(.exceptionally (reify Function
(apply [_ e]
(put! res (ex-info "Error in OpenAI chat." {:type :error-in-openai :error e}))))))
(put! res (ex-info "Error in OpenAI chat." {:type :error-in-openai :error (ex-message e)}))))))
res))


Expand Down
Loading

0 comments on commit 702670f

Please sign in to comment.