Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update totalMessages Logic in Boredom Scoring #408

Closed
DanielHighETH opened this issue Nov 18, 2024 · 0 comments
Closed

Update totalMessages Logic in Boredom Scoring #408

DanielHighETH opened this issue Nov 18, 2024 · 0 comments

Comments

@DanielHighETH
Copy link

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;
            }
        }
DanielHighETH added a commit to DanielHighETH/eliza that referenced this issue Nov 18, 2024
Added TODO comments for elizaOS#408 to review and update the `totalMessages` logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants