Skip to content

GENAI-3315 Added serverScore parameter for inferred local re-ranking - Inferred US 100% release#1219

Merged
rolf-moz merged 18 commits intomainfrom
add_server_score
Mar 25, 2026
Merged

GENAI-3315 Added serverScore parameter for inferred local re-ranking - Inferred US 100% release#1219
rolf-moz merged 18 commits intomainfrom
add_server_score

Conversation

@rolf-moz
Copy link
Copy Markdown
Contributor

@rolf-moz rolf-moz commented Jan 3, 2026

References

JIRA: https://mozilla-hub.atlassian.net/browse/GENAI-3315

Description

This PR preps for an inferred release that will work without an experiment.

• Server score is sent for most popular items to support local + server hybrid reranking (tested in an earlier experiment without the hybrid portion)

• Unknown experiments that use merino revert to local re-ranking only to preserve user privacy.

• Addition of privacy parameters override for Merino (will be enabled after future Firefox update to allow for easier experimentation)

• Use one of the inferred interests to support a special time zone offset that is handled in the client, allowing differential private time zone with inferred under the same privacy mechanism.

Background document:
https://mozilla-hub.atlassian.net/wiki/spaces/FPS/pages/2214560182/Inferred+Personalization+Rollout+to+100+in+the+US

PR Review Checklist

Put an x in the boxes that apply

  • [ x] This PR conforms to the Contribution Guidelines
  • [ x] The PR title starts with the JIRA issue reference, format example [DISCO-####], and has the same title (if applicable)
  • [load test: (abort|skip|warn)] keywords are applied to the last commit message (if applicable)
  • Documentation has been updated (if applicable)
  • Functional and performance test coverage has been expanded and maintained (if applicable)

┆Issue is synchronized with this Jira Task

@rolf-moz rolf-moz requested a review from mlplyler January 3, 2026 00:59
@rolf-moz rolf-moz changed the title DRAFT: Added serverScore parameter for inferred local re-ranking Added serverScore parameter for inferred local re-ranking Feb 21, 2026
@rolf-moz rolf-moz marked this pull request as ready for review March 5, 2026 16:54
@rolf-moz rolf-moz requested review from mmiermans and vazish March 24, 2026 15:23
@rolf-moz rolf-moz changed the title Added serverScore parameter for inferred local re-ranking Added serverScore parameter for inferred local re-ranking - Inferred US 100% release Mar 24, 2026

TIME_ZONE_OFFSET_INFERRED_KEY = "timeZoneOffset"

CLICK_RANDOMIZATION_EPSILON_MICRO_FOR_EXEPRIMENT = 14700000
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
CLICK_RANDOMIZATION_EPSILON_MICRO_FOR_EXEPRIMENT = 14700000
CLICK_RANDOMIZATION_EPSILON_MICRO_FOR_EXPERIMENT = 14700000

features={},
# TODO - add daylight savings time check so model can switch based on daylight savings time
# Below are thresholds in 24 offset format so that results are one of current bucketed PST -> EDT
thresholds=[16.1, 17.1, 18.1],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could these values be derived from constants in Python or a package that's already installed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes I have a todo for that above. I'll implement now

privacy_overrides: PrivacyOverrides | None = (
PrivacyOverridesForFivePercentExperimentUS() if small_experiment else None
)
print("privacy overrides set " + str(privacy_overrides))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove/convert debug print?

rec.receivedRank = idx
if rescaler:
last_score = 1000.0
tiny_delta = 0.0001
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you derive and/or document these values?

@rolf-moz rolf-moz changed the title Added serverScore parameter for inferred local re-ranking - Inferred US 100% release GENAI-3315 Added serverScore parameter for inferred local re-ranking - Inferred US 100% release Mar 24, 2026
@rolf-moz rolf-moz requested a review from mmiermans March 25, 2026 15:29
@rolf-moz rolf-moz added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit 84b5f3e Mar 25, 2026
7 checks passed
@rolf-moz rolf-moz deleted the add_server_score branch March 25, 2026 19:26
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