Guidelines Flashcards
Principle # 1
Write clear and specific instructions.
Clear is not equal to short prompts. Longer prompts provide models with more clarity.
Principle # 2
Give model time to think. If the task is too complex to perform, you can tell the model to spend longer on the task which means they can spend more computational resources to complete the task. This is applicable if the model is giving reasoning errors or not producing the accurate results.
Principal # 1: Tactic # 1
Use delimiters e.g. triple quotes “””,
Triple backticks, ```,
Triple dashes —,
Angle brackets: <>,
XML tags: <tag></tag>
It can be any punctuations that separate specific pieces of text from the prompt.
Principal # 1: Tactic # 2:
Ask for structured output e.g. HTML or JSON
Principle # 1: Tactic # 3:
Check whether conditions are satisfied. Check assumptions required to do the task. E.g. given a paragraph with recipe making steps, include prompt to extract steps in the sequence of steps.
Principle # 1: Tactic # 4
Few shot prompting i.e. give successful examples of completing tasks. Then ask model to perform the task.
Principle # 2: Tactic # 1
Specify steps or output format to complete the task
Principle # 2: Tactic # 2
Instruct the model to work out its own solution before rushing to a conclusion.
LLM Model Limitations
The model does not perfectly memorize the information it has seen so it does not know the boundary of it’s knowledge. Make statements that sound plausible but are not true. This is called Hallucinations.
Reducing Hallucinations
Hallucinations is a known weakness of the model.
1) Use tactics
2) First find relevant information then answer the question based on the relevant information.