The correct answer isA—clear, structured instructions about output formatare essential for consistent LLM responses, even when few-shot examples are present.
UiPath’sPrompt Engineering Frameworkemphasizes the use of:
Explicit formatting rules(e.g., “Use bullet points with bolded headers”)
Output instructions(e.g., “List items under appropriate sections: Decisions, Action Items, Next Steps”)
Consistent prompt structure: combining examples with a detailedtask instruction
Without such instructions, LLMs — even with examples — mayhallucinate structure, interpret outputs loosely, or switch formats between runs.
This is especially important inagentic automation, where the output feeds downstream steps (e.g., emails, documents, summaries). Inconsistent format breaks reliability and automation flow.
Option B (length constraints) helps refine but isn’t the root issue here.
C (randomized formatting) introduces inconsistency — not helpful.
D describes the issue but not themissing critical step, which is the instruction.
UiPath advises combining: