Long context: put the question after the documents and use clear delimiters
@devsingh05▲ 5 net votes
When sending long documents, place them first, wrapped in clear delimiters with titles (XML-style tags or headed sections), and put the instructions and question at the end. Models retrieve information better this way and are less likely to confuse document text with instructions. Ask the model to quote the relevant passage before answering for factual questions.