improve lexical warmup and standardize stopword pipeline

This commit is contained in:
2026-02-17 14:49:47 +08:00
parent 246eb7a7e2
commit 94eceaed96
14 changed files with 4840 additions and 330 deletions

View File

@@ -1551,6 +1551,7 @@ async function handleMessageReceived(scheduledChatId) {
// Refresh entity lexicon after new message (new roles may appear)
refreshEntityLexiconAndWarmup();
scheduleLexicalWarmup(100);
// Auto backfill missing L0 (delay to avoid contention with current floor)
setTimeout(() => maybeAutoExtractL0(), 2000);
@@ -1559,6 +1560,7 @@ async function handleMessageReceived(scheduledChatId) {
function handleMessageSent(scheduledChatId) {
if (isChatStale(scheduledChatId)) return;
initButtonsForAll();
scheduleLexicalWarmup(0);
setTimeout(() => maybeAutoRunSummary("before_user"), 1000);
}