Where to Put Long Documents in a Prompt: Documents First, Question Last
For prompts that include long documents, a good default is to place the documents first and your instruction or question after them, at the end. Anthropic's long-context guidance recommends this ordering, and it reflects how models tend to behave: the text clo...