Skip to content

Topics for Callers for Web Topics API #317

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

Closed
relevance-api-topics opened this issue Jul 2, 2024 · 8 comments
Closed

Topics for Callers for Web Topics API #317

relevance-api-topics opened this issue Jul 2, 2024 · 8 comments

Comments

@relevance-api-topics
Copy link

When getting 'top 5 topics', would we count frequency of websites visits based on each eligible caller, or always count based on the browser's whole visiting histories? Thanks.

@xyaoinum
Copy link
Collaborator

xyaoinum commented Jul 2, 2024

It's based on the frequency of a subset of browsing histories. A browsing history entry (a page) is eligible to participate only if the page had at least one topics caller. See when topics history storage get populated in the spec.

@relevance-api-topics
Copy link
Author

@xyaoinum thanks for the reply. based on the subset of the browsing histories, do you further rank topics for each caller separately?

ask this based on the understanding that different callers have different 'rights' for topics, only when callers observe the topics, they can receive 1 randomly selected from the top 5.

the 'top 5' are generated within one epoch for all the callers?

@xyaoinum
Copy link
Collaborator

xyaoinum commented Jul 2, 2024

The ranking depends on the frequency, and also on a a binary priority level (see the announcement, topics-utility-buckets-v1.md, pending spec update). However, it does not depend on the frequency of callers.

But note that it doesn't mean all the callers can get all top 5 topics in the next epoch. Per the explainer: "Only callers that observed the user visit a site about the topic in question within the past three weeks can receive the topic." The browser does need to track which caller observed which top 5 topics (corresponding to the top 5 topics with caller domains in the spec).

@relevance-api-topics
Copy link
Author

for "Lastly, Chrome selects the top five as the user's top topics for that epoch, which are eligible to be shared with callers."

still hope to confirm: 1) the 'top five' are generated for all callers at one single ranking, and filter by each caller's user observation, or 2) chrome maintain each caller with separately ranked 'top five'?

@xyaoinum
Copy link
Collaborator

xyaoinum commented Jul 2, 2024

@relevance-api-topics Your first statement is accurate

@xyaoinum xyaoinum closed this as completed Jul 3, 2024
@relevance-api-topics
Copy link
Author

Hi @xyaoinum, thanks for your information and help! Hope to ask a follow-up question: from your side, do you have a general understanding that what's the percentage of visiting history is in-scope for Topics API, near 100%? thanks!

@relevance-api-topics
Copy link
Author

relevance-api-topics commented Oct 29, 2024

Hi @xyaoinum, thanks for your information again, hope to re-open this case also with another quick follow-up question, for 'a 'page' is in-scope as long as one caller observe it':

  • if an page visit happened before the first observer observe it, is this visit contributing to the epoch's ranking?
  • if an page is observed by one caller, but the caller doesn't want to do fetch call every time the page is visited, will all page visits contribute to the Epoch topic ranking, or only the page visits having fetch observation calls can contribute?

Thanks!

@xyaoinum
Copy link
Collaborator

Hi @relevance-api-topics:

from your side, do you have a general understanding that what's the percentage of visiting history is in-scope for Topics API, near 100%?

It's actually a small percentage. Based on https://chromestatus.com/metrics/feature/timeline/popularity/5102, about 5% page visits has Topics calls (in any form; and whether observe or not). Note that the measurement is quite new and might not fully stabilize until M131 reaches Stable on 12/03. But it should be clear that the in-scope history is far from 100%.

if an page visit happened before the first observer observe it, is this visit contributing to the epoch's ranking?

I'm not sure what you mean. A page visit always happens before the first observer observes it. Any observation during the page's life cycle will make the page eligible for topics.

if an page is observed by one caller, but the caller doesn't want to do fetch call every time the page is visited, will all page visits contribute to the Epoch topic ranking, or only the page visits having fetch observation calls can contribute?

only the page visits having observation calls can contribute.

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