Tactic 1: Use delimiters to clearly indicate distinct parts of the input
Delimiters can be anything like: ```, """, < >,Ā <tag> </tag>,Ā :
š”
Summarize
```
contents ā¦ā¦
```
Tactic 2: Ask for a structured output
JSON, HTML
š”
XXXX, Provide them in JSON format with the following keys:
book_id, title, author, genre.
Tactic 3: Ask the model to check whether conditions are satisfied
Check assumptions required to do the task
š”
You will be provided with text delimited by triple quotes.
If it contains a sequence of instructions, \
re-write those instructions in the following format:
Step 1 - ...
Step 2 - ā¦
ā¦
Step N - ā¦
If the text does not contain a sequence of instructions, \
then simply write \"No steps provided.
Tactic 4: "Few-shot" prompting
Give eamples and ask model to perform the task.
š”
Your task is to answer in a consistent style.
<child>: Teach me about patience.
<grandparent>: The river that carves the deepest \
valley flows from a modest spring; the \
grandest symphony originates from a single note; \
the most intricate tapestry begins with a solitary thread.
<child>: Teach me about resilience.
Ā
Tactic 2: Instruct the model to work out its own solution before rushing to a conclusion