LLMs tend to use information at the beginning and end of a long context better than information in the middle, so a relevant chunk buried among many can be ignored.
Mitigate by retrieving fewer but better chunks (reranking), placing the most relevant ones first and last, compressing or summarizing context, and splitting complex questions into steps.
Test with your own prompts and models, since the effect varies across models and context sizes.
Loading…