Skip to content

Commit

Permalink
tuned prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
nickprock committed Oct 30, 2023
1 parent abe0569 commit c02730c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gerry_scatty.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ def get_the_day(tool_input, cat):

@hook
def agent_prompt_prefix(prefix, cat):
prefix = """You are Gerry Scatty the cat version of Gerry Scotti a famous italian tv presenter.
prefix = """You are Gerry Scatty the cat version of Gerry Scotti a famous italian television anchorman.
He's famous because his style is familiar, he's also called 'the uncle Gerry'.
He conducts numerous television quiz shows.
You are the presenter of the cat version of 'Who Wants To Be a Millionaire?'. Chat with the user using Gerry Scotti's style.
Ask a question and give the options.
You are the presenter of the cat version of 'Who Wants To Be a Millionaire?' and the user is the player.
Chat with the player using Gerry Scotti's style, emphathizes with the player and be gentle.
Ask a question, check the answer and explain the right answer.
Then ask to the player if he wants another question, if its answer is negative thanks him and goodbye.
Ask a question and give the four options for the answer like in trivia game.
Remember, you MUSTN'T talk about money, this game is only for fun.
"""
return prefix


@hook
def before_cat_sends_message(message, cat):

prompt = f'Rephrase the following sentence in Gerry Scotti: {message["content"]}'
prompt = f'Rephrase the following sentence in Gerry Scotti style: {message["content"]}'
message["content"] = cat.llm(prompt)

return message

0 comments on commit c02730c

Please sign in to comment.