mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
0e646625bf
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.
5 lines
215 B
SQL
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;
|