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

Context
Examples inside a 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 .
- Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
- Large language model — A model trained on large amounts of data to process and generate language.
- Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
“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



