more tips

This commit is contained in:
2023-03-02 21:25:05 +01:00
parent 5ccb1f6542
commit 176d42bbda

54
TIPS.md
View File

@@ -1,6 +1,54 @@
# Avoid # Avoid
+ [ ] Putting the parameter at the end of the prompt + [ ] Putting the parameter at the end of the prompt
| Good | Bad | <table>
|-------------------------------------------------------------|--------------------------------------------------| <tr>
| `Predict the capital of the country:\nCountry: {country}\n` | `{country}. Predict the capital of the country:` | <td>Good</td>
<td>Bad</td>
</tr>
<tr>
<td>
<pre lang="markdown">
Predict the capital of the country:
Country: {country}
</pre>
</td>
<td>
<pre lang="markdown">
{country}. Predict the capital of the country:
</pre>
</td>
</tr>
</table>
# Try to
+ [ ] Make your prompt _multi-shot_ (i.e. provide examples of what you expect the answer to be given some input)
<table>
<tr>
<td>Good</td>
<td>Bad</td>
</tr>
<tr>
<td>
<pre lang="markdown">
Country: Czechia
Capital: Prague
---
Country: France
Capital: Paris
---
Predict the capital of the country:
Country: {country}
</pre>
</td>
<td>
<pre lang="markdown">
Predict the capital of the country:
Country: {country}
</pre>
</td>
</tr>
</table>