forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/context/__init__.pyClear filter

2026-09-05

feat(context): lost-in-the-middle siralama + token butcesi (context engineering)Kadir Yönak · 0070407
feat(context): lost-in-the-middle siralama + token butcesi (context engineering)

RES-003 §2-3 + '3 ilke: cok context != iyi'. src/context/packing.py:
- apply_token_budget: skor-azalan context'leri token limitine kirp (en az 1 kalir);
  DeepSeek giris maliyeti + baglam sigdirma. parent_text token'a dahil.
- reorder_lost_in_middle: en guclu kanit basa+sona, zayif ortaya (Liu 2023).
- pack_contexts: butce + siralama; Generator'da opsiyonel (varsayilan KAPALI,
  backward-compat; eval runner acar). Atif/span DEGISMEZ (yalniz sira + dahil edilenler).
- Test: 9 birim (butce/siralama/parent-token); tum paket 301/301.

Closes #21