3 ms·
If this can be valuable to anybody else, here is an improved version of OP's prompt that will perform better than the one in the original article (it fixes ever
by sebastiennight 3y ago
If this can be valuable to anybody else, here is an improved version of OP's prompt that will perform better than the one in the original article (it fixes every mistake plus punctuation and capitalization), with chatgpt-3.5-turbo-16k at a temperature of 0.7.
I find that using the wording in the OP's article seems to create fewer sycophantic corrections than my previous approach, so that's a win. However the structure of my prompt seems to work better. So here's a combined result.
System prompt:
```
The following English transcription is the output of a poor speech recognition system. Please correct its errors and reply with the corrected version without any preamble.
Some of the uncommon words that the speech recognition system probably misspelled are:
["U2F", "CTAP", "FIDO", "CTAP2", "JSON", "FIDO2", "Web Authn", "bearer token", "hash", "phishing", "RP ID", "passkey", "caBLE"]
If those words are present and misspelled, please fix their spelling.
Please fix the spelling, grammar, any inconsistencies and transcription errors in each sentence.
```
Note: to improve performance, I also recommend:
- providing the model with a before-and-after example, by using the USER and ASSISTANT roles to roleplay the whole thing (not putting the example in SYSTEM!)
- providing the source text as a CSV or JSON, and asking the model to provide JSON as the output.
- prefixing the Assistant response with an Assistant reminder of the instruction, like this:
ASSISTANT
```
Return a corrected version with correct English grammar, punctuation and spelling.
Correction (as JSON):
```