~/arcade / context-packer
Context Packer
Every RAG system plays this game silently on every query: a token budget, a pile of candidate chunks, and a decision about what makes the cut. Pack the context window yourself, ship it, and get scored against the exact dynamic-programming optimum. Relevance is hidden until you commit — just like production.
GAME 05 · CONTEXT PACKER
Fit the truth in the window
retrieval's real endgame: what do you NOT send to the model?total 0level 1/3HI ---
query: "why did ingestion corrupt 22% of documents?" — pick chunks, stay under budget, maximize relevance:
This is the knapsack problem wearing a RAG costume — and it's genuinely what rerankers decide thousands of times a day. The poem never helps.
more