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
Explore this link on the map →related reading
- 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
- Patterns for Building LLM-based Systems & Productseugeneyan.com
- Newest Annual Compilation Of The Best Prompt Engineering Techniquesforbes.com
- Generated Knowledge Prompting | Prompt Engineering Guidepromptingguide.ai
- Prompt Engineering | Kagglekaggle.com
- Prompt Like a Data Scientist: Auto Prompt Optimization and Testing with DSPy | Towards Data Sciencetowardsdatascience.com
- [2210.02441] Ask Me Anything: A simple strategy for prompting language modelsarxiv.org