JPhilipp / politeness-test

Checks how well the ChatGPT API responds when using Please and Thanks vs when not.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This Nodejs project compares using "Please" and "Thanks" with the ChatGPT API. The prompt isn't representative of all kinds of prompts, but just looks into a straightforward one which gets back JSON. Examples can be found in the results folder.

(Note the bonus task of adding a "moral" to the story was not taken into the score calculation.)

Based on this test with 1000 tries of a non-polite/ normal variant and a polite one each, there seems to be no significant score difference:

Polite score Ø:   20.965
Impolite score Ø: 20.948

If we count story text length, it's a bit higher for the polite version, which isn't necessarily provable good or bad (and may simply follow the vibe of Please and Thanks generally resulting in a longer prompt).

PS: This test notwithstanding, I will personally keep using Please and Thanks. For one thing, it may yield improvements in hard-to-test creative areas, or complex tasks (neither of which this test measures). On top, it's simply more polite to our LLM friend!

About

Checks how well the ChatGPT API responds when using Please and Thanks vs when not.


Languages

Language:JavaScript 100.0%