eliza
eliza copied to clipboard
Update totalMessages Logic in Boredom Scoring
The boredom scoring function uses totalMessages in two places to evaluate user activity and interactions. Right now, it applies a threshold (> 10) to penalize repetitive or low interaction activity. This logic might need to be adjusted to better reflect actual user behavior and improve accuracy.
Please check if the threshold (> 10) is appropriate.
// TODO: change totalMessages value
if (recentUsers.length <= 2 && recentMessages.length > 10) {
boredomScore += 1;
}
if (uniqueUsers.length < 3) {
// if less than 3 unique users, assume repetitive interaction
const totalMessages = Object.values(userMessageCounts).reduce(
(a, b) => a + b,
0
);
// TODO: change totalMessages value
if (totalMessages > 10) {
boredomScore += 1;
}
}