consolidation and aging

This commit is contained in:
Storme-bit
2026-08-23 22:41:21 -07:00
parent fd8867ee96
commit 4b2099498c
4 changed files with 49 additions and 3 deletions
+7
View File
@@ -120,6 +120,12 @@ const UTILITY = {
TIMEOUT_MS: 120_000, // extraction previously used 60s; summaries had none — standardized
};
const CONSOLIDATION = {
MIN_AGE_DAYS: 7, // episodes younger than this are never consolidation candidates
MIN_SESSION_EPISODES: 20, // sessions smaller than this are left entirely alone
CANDIDATE_LIMIT: 50,
}
module.exports = {
QDRANT,
COLLECTIONS,
@@ -135,4 +141,5 @@ module.exports = {
ENTITIES,
RETRIEVAL,
UTILITY,
CONSOLIDATION,
};
+3 -1
View File
@@ -13,7 +13,8 @@ const {
SUMMARIES,
ENTITIES,
RETRIEVAL,
UTILITY
UTILITY,
CONSOLIDATION
} = require('./config/constants');
const {parseRow, formatEpisodeText, isTrivialTurn} = require('./utils')
@@ -40,5 +41,6 @@ module.exports = {
logger,
RETRIEVAL,
UTILITY,
CONSOLIDATION,
utilityInference,
};