Skip to content

Commit

Permalink
Merge pull request #281 from patcg-individual-drafts/akatcoff-top-top…
Browse files Browse the repository at this point in the history
…ics-selection

Top topics selection with prioritization
  • Loading branch information
jkarlin authored Dec 4, 2023
2 parents bcb788f + 6aef8b9 commit 326099d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,15 @@ The topics will be inferred by the browser. The browser will leverage a classifi
* Please see below for discussion on allowing sites to set their own topics.
* The mapping of hostnames to topics will be updated over time, but the cadence is TBD.
* How the top five topics for the epoch are selected:
* At the end of an epoch, the browser calculates the list of eligible pages visited by the user in the previous week
* Eligible visits are those that used the API, and the API wasn’t disabled
* e.g., disabled by preference or site response header
* For each page, the host portion of the URL is mapped to its list of topics
* The topics are accumulated
* The top five topics are chosen
* Topics are sorted by a two-level sort – first by priority level and then by visit count.
* Priority:
* Each root-level topic (e.g. /Arts & Entertainment or /Autos & Vehicles) in the taxonomy is assigned a binary priority level based on industry input. The root-level topic’s descendants inherit its priority. A topic’s priority is universal across all epoch calculations for all users.
* Visit count:
* At the end of an epoch, the browser calculates the list of eligible pages visited by the user in the previous week
* Eligible visits are those that used the API, and the API wasn’t disabled
* e.g., disabled by preference or site response header
* For each page, the host portion of the URL is mapped to its list of topics
* The topics are accumulated
* If the user opts out of the Topics API, or is in incognito mode, or the user has cleared all of their history, the list of topics returned will be empty
* We considered a random response instead of empty but prefer empty because:
* It’s clearer to users to see that after disabling the feature, or entering incognito, that no topic is sent
Expand Down

0 comments on commit 326099d

Please sign in to comment.