Guidelines for writing instructions
Important points to adhere to when writing instructions:
Conciseness and Simplicity.
Accuracy and Completeness.
Clarity.
Conciseness and Simplicity
On one hand, LLM models appreciate when tasks are described precisely, but on the other hand, it’s important to avoid excessive descriptions where they can be omitted.
For example:
The instruction is overloaded with unnecessary details and distracts the model from its main task — qualifying the client based on criteria. It includes irrelevant aspects, such as the client's opinion on the brand, which are not critical at the qualification stage.
Another version of the same instruction:
Accuracy and Completeness
It’s important to describe precise formulations in the instruction. Any generalization will reduce the quality of responses. For instance, if you need to sequentially find out certain information from a client (Full Name, phone, passport details):
If you do not use a step-by-step construction, the bot will issue a list of questions in one message.
Another example, when you need the bot to greet the client:
If we leave the poor version, it may turn out that the bot will greet repeatedly with every response, as it understands your instruction literally.
Clarity
A common mistake is duplicating or contradicting the same instruction in different parts.
For example, you described how the cost is calculated, checked that everything works. But then suddenly after some time you added another piece of instruction that is not related in meaning to the first but contains some element about the cost.
An example of the situation is shown below:
Because of this point, the bot will first start checking availability when requesting the cost, since the cost calculation point was duplicated and is located below:
Hence, it is important to avoid duplicating information and ambiguous formulations. The more precise, concise, and unequivocal the request is written, the more stable and predictable the model’s responses will be.
Using Affirmative Forms Instead of Negative
If you need the bot not to do or say something, it's better to avoid negative forms and find similar affirmative forms in meaning.
For example:
Prompts
Below are prompts that will be useful in specific situations:
"Step by step, only after interlocutor’s response" – allows questions to be asked in turn, following the client’s response
"... if not already known from the dialogue context" – allows eliminating repetitive questions from the bot if the client has previously answered them in their inquiry or our dialogue
"Always" – allows increasing focus of the model, when it is important to consider some point
"If the client wrote …" – allows creating conditions for triggering a particular response
Last updated