Start with about 8 chunks in the prompt, best first
How many chunks go into the prompt? Anthropic tried 5, 10 and 20, and found 20 worked best of those three.
Long prompts have their own failure. Liu and coauthors found that models often do best when the relevant information sits at the beginning or the end of the prompt. Performance drops significantly when it sits in the middle of a long prompt, even for models built for long contexts.
Agent assist adds a third constraint: the agent has to check the citations. So start around 8 chunks, put the highest-authority, highest-scoring ones first, and measure.
In the editor, write prompt_chunks(chunks, n): the chunks for the prompt, strongest first. Each chunk has a reranker score and an authority from 0 for a policy to 4 for a ticket, the order of the authority table.