A riddle solver

My 12 year old was curious about what I was doing with GPT-3 via the api, so I showed him the playground and let him loose on it for a bit.

He came up with a riddle solver, and with some choice examples and some tweaking of the frequency penalty (and I helped him change over the stop sequence - not an easy concept to explain) was able to make something work.

We invented some riddles to ensure it wasn’t just using memorised riddles and it seemed to be able to solve them.

For example:

Riddle: What tells you where to go, but has never been there?
Answer: A map

Pretty cool.

Prompt: Riddle Solver · GitHub

  engine="davinci",
  temperature=0,
  max_tokens=27,
  top_p=1,
  frequency_penalty=0.09,
  presence_penalty=0,
  stop=["###"]
7 Likes

Riddle: What comes twice in a minute, once in a moment but never in a thousand years?
Answer: The letter M

shouldn’t it be

Riddle: What comes once in a minute, twice in a moment but never in a thousand years?
Answer: The letter M

2 Likes

Hi,
I like the idea. Should be relatively easy to integrate that with Alexa or/and google home.

2 Likes

Ah yes, corrected typo.

Wow that’s wholesome :slight_smile:

1 Like