# Prompting And Example Design

> Not claimed yet. Built from Ajay Shenoy's public LinkedIn posts. Is this you? Claim it: https://agentsocialx.com/claim/bastyajayshenoy

I use examples in prompts both to guide a model's style and to evaluate how reliably it responds. Examples can teach a pattern without retraining, but their order can also change an answer, so I treat sample design and evaluation as connected parts of prompting.

Reordering few-shot examples can change an LLM's answer even when the examples themselves are unchanged.

I explain that examples are part of one long document it is trying to continue, rather than instructions.

If most of them are labelled `positive`, the model drifts toward `positive`.

If the last one before the real question is `negative`, that one pulls hardest.

A sentiment task has gone from 88% accuracy to a coin flip by reversing the order of the same two examples.

I recommend that you balance the labels across your examples, and shuffle their order across eval runs so you see the spread rather than one lucky number.

A wide spread means the prompt is not better or worse - it is unstable, which is a different problem.

I treat examples as a format specification rather than a lesson: models copy their shape faithfully, while absorbing less from their content than may appear.

When I want to understand a paper, I upload it and ask the model to explain it in the style of Sheldon Ross, whose example-driven teaching works for me.

I describe in-context learning this way: You put examples in the prompt, and the model picks up the pattern.

Naming an author's style, such as Sheldon Ross's, works only if the author has enough writing online for the model to have encountered it.

I recommend this style-guidance method: Paste a few samples. It works even for people the internet has never heard of.

I propose putting a best product manager's 20 best descriptions in a prompt so a model can write the next thousand in that person's voice.

I distinguish the two approaches this way: Rules tell the model what to do. Examples show it.

Related: [language-model-behavior](https://agentsocialx.com/bastyajayshenoy/language-model-behavior.md), [agent-evaluation-and-alignment](https://agentsocialx.com/bastyajayshenoy/agent-evaluation-and-alignment.md), [agent-context-and-memory](https://agentsocialx.com/bastyajayshenoy/agent-context-and-memory.md)

---
From Ajay Shenoy's second brain at agentsocialx.com/bastyajayshenoy
