top of page

Prompt Engineering - Art or Science

Writer: Vinish Vishwanathan
Vinish Vishwanathan
Sep 3
4 min read

Is Prompt Engineering Dead?


My view is: Prompt engineering isn't dead. But our understanding of what it means has changed.


We are moving away from the idea that a collection of clever phrases or "magic prompts" can unlock an LLM, towards a more structured understanding of how instructions, context, examples, constraints and task decomposition influence model behaviour.

And that is what makes prompt engineering interesting.


Is it science, art—or a bit of both?


Lets start with basic definition of Prompt Engineering. Prompt Engineering is a way to structure the input provided to LLM, which can guide the LLMs to produce relevant and coherent output.


Now lets try to remind ourselves how attention works, during generation, an autoregressive LLM predicts the next token based on the tokens available in its context. The attention mechanism allows the model to determine which parts of that context are relevant when producing the next token.


This is one reason structure matters.


Instructions, context, examples and constraints aren't simply a bag of words. Their positioning and relationships can influence how the model interprets the task.

This is also why we commonly separate instructions from context when designing prompts. We want the model to understand what it needs to do and then provide the information it needs to perform that task.


However, there isn't a universal "instructions first, context second" rule. The optimal structure depends on the model, task and prompt design.


Now lets look at some commonly used Techniques for Prompt Engineering :


  1. Just Ask

  2. Few-Shot Learning/k-shot learning

  3. Batch Prompting

  4. Prompt Chaining

  5. Chain of Thought Prompting

  6. Role/Persona

  7. Constraints


Just Ask

This is what actually it sounds like, so just ask the LLM what you are looking for with as much information and structure and accordingly the output provided will be better.


An easy example of this is drafting response to an mail. If you simply ask an LLM to respond to an email it will ofcourse try its best to provide a meaningful response. Now you can also ask a LLM to draft a response to match energy of the email you received and you will quickly notice the difference in the response generated.


So did the model suddenly become smarter, not really, with our latter prompt we reduced the ambiguity.


Good prompting is less about finding magic words, but more about reducing ambiguity.


Few-Shot Technique

In this technique we provide some examples to the model so it understands what are our expectations.


Few-shot prompting demonstrates the more scientific side of prompt engineering. Rather than merely telling the model what to do, we provide examples that establish a pattern the model can infer from.


But choosing examples is where the art begins. Which examples should we provide? How many? Should they represent edge cases? Should they be similar to the expected inputs?


Batch Prompting

Lets understand this with an example.

q[1]:{question}

q[2]:{question}

a[1]:{answer}

a[2]:{answer}


x samples provided

q[1]: Jack had 10 pens, Jill took 8 from him. How many Pens are remaining with Jack now?

q[2]: Jack had 10 pencils, Jill gave 10 more to him, How many pencils now Jack has ?


Response to a batch

a[1]: Jack had 10 pens and Jill took 8 from him, so 10 -8 = 2, Jack now has 2 pens remaining with him.

a[2]: Jack had 10 pencils, Jill gave 10 more to him, so 10+10 = 20, Jack now has 20 pencils with him.


As you can above with the x samples we provided, we have LLM to respond to both questions at once.


Science: consistency and structured output.

Art: designing the input/output format so the model doesn't confuse items.


Prompt Chaining


Prompt chaining is a technique where we chain prompts to improve the output generated. This chaning can be done via prompts or between LLMs.


Example: Before responding to an email, have an additional prompt on how a person is feeling and then ask to respond to the email. Now the output email generated will be adapted to how the person is feeling, which is a more favourable outcome.


Similarly, one can chain prompts between LLMs to generate generate a desired final Outcome.


Science: Decomposing tasks reduces complexity

Art: Knowing where/how to decompose


Chain of Thought Prompting


Chain-of-thought prompting became popular with the idea that asking a model to reason step by step could improve performance on complex tasks.


Science: Reasoning-oriented prompting can influence performance

Art: Knowing when reasoning is actually useful


Role/Persona


Adding role or persona to a prompt improves the context and hence improves the response from the model.


Science: Context influences output

Art: Crafting the right framing


Constriants


Providing constraint in the prompt reduces the ambiguity and improves the response.


Science: Reduces output ambiguity

Art: Deciding which constraints matter



Where Prompt Engineering Stops

Another important aspect I would like to bring in is, Prompt Engineering is not equal to the solution. Below are some cases were Prompt Engineering alone is not sufficient.



The ultimate test of prompt engineering isn't whether a prompt looks clever. It's whether it produces better outcomes consistently. This is where Evals become very important.


Prompt → Output → Evaluation → Refinement


The moment we measure the impact of a prompt systematically, prompt engineering starts lto surface anothe angle which is experimentation. From experience no models produce same output with same Prompts, this is where experimentation becomes critical.


So, is prompt engineering science or art?


The answer is both—but perhaps not in equal measure.


The science lies in understanding how models process instructions, context and examples, and in systematically measuring whether a change actually improves the outcome.


The art lies in translating an ambiguous human objective into something a machine can interpret effectively.


And as LLMs become better at reasoning, remembering context and following instructions, the "art" of crafting clever prompts may become less important.


But the underlying discipline—understanding how to communicate intent to an AI system and evaluating whether that communication works—isn't going away.



Recent Posts

See All
AI Project Prioritization

One of the biggest lessons I've learned while delivering AI initiatives is that the challenge isn't prioritizing AI features—it's prioritizing everything that enables those features. Traditional prior

 
 
 
AI Project Framework

Over the years of tackling business challenges in Supply Chain (SAP SD, stock replenishment) and RegTech, as well as working on Data Projects (Distributor Data Analytics), I have learned that the key

 
 
 

Comments


bottom of page