Prompt Engineering
- Source
- lilianweng.github.io
- Author
- Lilian Weng
- Date

Context
Examples inside a prompt can show a what a successful answer should look like without changing its trained parameters. Lilian Weng's prompt-engineering survey explains this as few-shot prompting: supply several input-and-answer pairs, then present the new input.
The examples communicate both the task and the expected response pattern. Their selection and ordering can also bias the result, and they consume space that could otherwise hold the user's material or the answer. Weng describes prompting as an empirical practice whose effects vary across models. Examples are therefore part of the system's behavior to evaluate, rather than interchangeable illustrations attached to an instruction.
- LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
- context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
“It is an empirical science and the effect of prompt engineering methods can vary a lot among models, thus requiring heavy experimentation and heuristics.”
“At its core, the goal of prompt engineering is about alignment and model steerability.”
articlePromptimus: Improving already good LLM prompts with zero manual engineeringwww.amazon.science
articleBeyond Prompt Engineering: A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on QualityQipeng Xie, Zi Liang, Jiafei Wu, Yufei Chen, Weizheng Wang, Wenao Ma, Zhong Ming, Haiqin Yang, Kaishun Wu
repopromptbaseMicrosoft
Checking sign-in…
Loading comments…



