feat(generation): enforce prompt budget with whole article eviction (#47)

This commit is contained in:
2026-11-25 11:47:23 +01:00
parent 3983e49ff8
commit c5b8d0d4da
31 changed files with 882 additions and 296 deletions

View File

@ -7,6 +7,8 @@ const UTF8UpperBound = "utf8_bytes_upper_bound_v1"
var ErrUnknown = errors.New("summary_capacity_unknown")
var ErrExceeded = errors.New("summary_prompt_budget_exceeded")
var ErrFixedContextExceeded = errors.New("summary_fixed_context_budget_exceeded")
var ErrNoArticlesFit = errors.New("no_articles_fit_prompt_budget")
type Profile struct {
ContextWindowTokens int `json:"context_window_tokens"`