Skip to content

Conversation

@zhenghaoz
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.95%. Comparing base (0a9dbff) to head (70d0807).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
dataset/dataset.go 95.23% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1129      +/-   ##
==========================================
+ Coverage   72.87%   72.95%   +0.08%     
==========================================
  Files          79       79              
  Lines       15199    15240      +41     
==========================================
+ Hits        11076    11119      +43     
+ Misses       3019     3017       -2     
  Partials     1104     1104              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements LLM benchmarking capabilities for the Gorse recommendation system by adding timestamp tracking to feedback data and creating evaluation functions for different model types (collaborative filtering, attentive factorization machines, and LLM-based rankers).

Changes:

  • Added timestamp tracking to the dataset structure to enable temporal data splitting
  • Implemented SplitLatest() method to create train/test splits based on most recent feedback per user
  • Created comprehensive benchmark command with evaluation functions for CF models, AFM, and LLM rankers

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
dataset/dataset.go Added timestamps field and tracking, implemented SplitLatest method for temporal splitting, added GetItems to CFSplit interface
dataset/dataset_test.go Updated tests for AddFeedback signature change, added test coverage for SplitLatest method
model/cf/evaluator_test.go Updated AddFeedback call to include timestamp parameter
master/tasks.go Updated AddFeedback call to pass actual timestamp from feedback
logics/chat.go Added ChatTemplateKwargs to disable thinking mode for chat completions
common/parallel/parallel_test.go Increased test sleep duration from 100ms to 1 second
cmd/gorse-benchmark/main.go Implemented comprehensive benchmark command with EvaluateCF, EvaluateAFM, EvaluateLLM functions and CTR dataset splitting logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…tLatest, update LLM evaluation, and integrate table output for metrics
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

zhenghaoz and others added 3 commits January 24, 2026 14:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…aluateAFM, ensure proper error handling, and streamline output formatting
@zhenghaoz zhenghaoz merged commit 09640fc into master Jan 24, 2026
12 checks passed
@zhenghaoz zhenghaoz deleted the benchmark branch January 24, 2026 11:56
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

Successfully merging this pull request may close these issues.

2 participants