Skip to content

Prompt engineering

Deliberately designing and checking tasks, context and output rules for a generative model.

AI & Automation

What is prompt engineering?

Prompt engineering systematically designs and tries inputs for generative models. It includes task descriptions, required context, suitable examples and output rules. Variants are compared on appropriate cases and recorded traceably. The inputs change; this does not adjust model parameters as training does. Good wording alone does not guarantee business correctness.

In a fictional document workflow, the prompt requires document_type to be invoice, delivery_note or review. Mixed or unclear documents should go to review. The team tries the rule on clear and difficult examples. It checks both allowed output form and actual classification. A valid field containing an allowed value does not by itself establish that the document was classified correctly.

Sources

Articles on this topic

AI & Automation with ASES

AI assistants and automated workflows