Prompt Engineering | Lil'Log
Prompt Engineering, also known as In-Context Prompting, refers to methods for how to communicate with LLM to steer its behavior for desired outcomes without updating the model weights. It is an empirical science and the effect of prompt engineering methods can vary a lot among models, thus requiring heavy experimentation and heuristics. This post only focuses on prompt engineering for autoregressive language models, so nothing with Cloze tests, image generation or multimodality models.
Table of Contents Basic Prompting Zero-Shot Few-shot Tips for Example Selection Tips for Example Ordering Instruction Prompting Self-Consistency Sampling Chain-of-Thought (CoT) Types of CoT prompts Tips and Extensions Automatic Prompt Design Augmented Language Models Retrieval Programming Language External APIs Citation Useful Resources References Prompt Engineering , also known as In-Context Prompting , refers to methods for how to communicate with LLM to steer its behavior for desired outcomes without updating the model weights. It is an empirical science and the effect of prompt engineering
related reading
- Prompt Engineering Guide | Prompt Engineering Guidepromptingguide.ai
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- 2402.07927arxiv.org
- Prompt Engineering Guide | Prompt Engineering Guidepromptingguide.ai
- How To Train Your Pet LLM: Prompt Engineeringtxt.cohere.com
- Prompt engineering overviewdocs.anthropic.com
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- Prompt Engineering Tips and Tricks with GPT-3 · andrew makes thingsblog.andrewcantino.com
- Effective context engineering for AI agents \ Anthropicanthropic.com
- Few-Shot Prompting | Prompt Engineering Guidepromptingguide.ai
- Prompt Chaining | Prompt Engineering Guidepromptingguide.ai
- Everything I'll forget about prompting LLMsolickel.com