Design question: why not use model metadata for contextWindow + built-in compaction? #256
ContextI noticed that Bub currently:
Current behaviorQuestionIs this by design? Specifically:
I'm happy to contribute if there's alignment on a direction. Thanks! |
Replies: 1 comment 1 reply
|
Thanks for the thoughtful suggestion. We don’t think Bub should try to track each model’s context window directly: the effective limit depends on both the provider and the deployment. Projects such as Pi and models.dev—do maintain similar metadata, but adopting that machinery would add complexity. For now, we assume users understand the constraints of the model they choose. For recovery and compaction, we’d like to keep anchors as a general mechanism that remains useful across a broad range of cases,our current setup already follows this idea: prompts and skills guide the model to create an anchor proactively before it reaches the context window or another limit. It isn’t perfect, but it works well for most small tasks, a lightweight management aid could still be valuable. |
Thanks for the thoughtful suggestion. We don’t think Bub should try to track each model’s context window directly: the effective limit depends on both the provider and the deployment. Projects such as Pi and models.dev—do maintain similar metadata, but adopting that machinery would add complexity. For now, we assume users understand the constraints of the model they choose.
For recovery and compaction, we’d like to keep anchors as a general mechanism that remains useful across a broad range of cases,our current setup already follows this idea: prompts and skills guide the model to create an anchor proactively before it reaches the context window or another limit. It isn’t perfect, but it …