Files
Memoh/db/migrations/0052_compaction_ratio.up.sql
T
Acbox 0e646625bf feat: add compaction ratio setting to control partial context compaction
Allow users to configure what percentage of older messages to compact,
keeping the most recent portion intact. Default ratio is 80%, meaning
the oldest 80% of uncompacted messages are summarized while the newest
20% remain as-is for full-fidelity context.
2026-03-29 19:14:43 +08:00

5 lines
215 B
SQL

-- 0052_compaction_ratio
-- Add compaction_ratio column to bots table for controlling what percentage of messages to compact.
ALTER TABLE bots ADD COLUMN IF NOT EXISTS compaction_ratio INTEGER NOT NULL DEFAULT 80;