Dallonses logo

Prompt engineering

What is prompt engineering?

Prompt engineering is the practice of designing the instructions you give a language model so it produces the output you actually want. The same model can return a vague paragraph or a clean, structured answer depending entirely on how the request is framed.

The techniques are concrete. Giving the model a clear role and goal. Showing it a few worked examples so it learns the pattern (few-shot prompting). Asking it to reason step by step before committing to an answer. Specifying the exact output format, like JSON with named fields, so downstream code can parse it. A model asked to "extract the invoice total, date, and vendor as JSON" behaves very differently from one asked to "tell me about this invoice," and that difference is the whole job.

Prompt engineering is not a substitute for grounding or fine-tuning. It is the cheapest, fastest lever you have, and it often gets you most of the way. The remaining gap, where wording alone cannot fix accuracy, is where retrieval and evaluation come in.

Prompt engineering at Dallonses

We treat prompts as part of the codebase, not as throwaway text in a notebook. They get versioned, tested against real inputs, and changed deliberately when we can show the new version does better. A prompt that works in a quick trial often breaks on the messy fifth case, so we build the test set early and let it catch regressions.

Inside our AI and machine learning solutions, prompt design sits next to retrieval and evaluation rather than standing alone. When we build chatbots and virtual assistants, the prompt defines tone, guardrails, and output shape, and we tune it against the awkward questions real users ask. It is unglamorous work that decides whether the system feels reliable or flaky.

Getting inconsistent output from a model that should know better? Let's tighten it up.

Talk to us about AI

Related services


Ready to work together?

Book a meeting
Aymón holding a Tools magazine in front of their facem
Ari working on a laptop outdoors surrounded by plants
Top-down view of a wooden desk with a keyboard, mouse, and headphones
Hand-drawn illustration of a hand snapping fingers
Nico leaning against a water cooler next to a fire extinguishe
Close-up of an open computer with circuit board and components on a wooden desk
Bernat and Andreu collaborating at a desk with monitors and a laptop
Hand-drawn illustration of an open hand waving
Aymón holding a Tools magazine in front of their facem
Ari working on a laptop outdoors surrounded by plants
Top-down view of a wooden desk with a keyboard, mouse, and headphones
Hand-drawn illustration of a hand snapping fingers
Nico leaning against a water cooler next to a fire extinguishe
Close-up of an open computer with circuit board and components on a wooden desk
Bernat and Andreu collaborating at a desk with monitors and a laptop
Hand-drawn illustration of an open hand waving