AI engineering glossary · Prompt context engineering
What is long-context prompting?
Long-context prompting: Working with prompts that carry very large inputs, such as whole books or codebases, and applying habits that help: putting documents before questions, labelling sections and asking for quotes. Capacity alone does not guarantee good use of the text.
Long-context prompting: an example
Place three 40-page reports at the top in tagged blocks, then ask the comparison question at the end.
Related terms
More Prompt context engineering terms
- Lost in the middle
- Maieutic prompting
- Majority label bias
- Map-reduce summarisation
- Markdown formatting in prompts
- Max tokens
- Message roles
- Meta-prompting
Where you learn it
Long-context prompting is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.