question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add source suggestions for Brave News

See original GitHub issue

Url format https://[hostname]/source-suggestions/source_similarity_t10.[region].json Where region is, e.g. en_US

The format is:

{
  [key: PublisherID]: {
    source: PublisherID
    score: number
  }[]
}

There is also a human readable file at https://[hostname]/source-suggestions/source_similarity_t10_hr.[region].json, the only purpose of which is to more easily check expected results, where the format is:

{
  [key: PublisherName]: {
    source: PublisherName
    score: number
  }[]
}

Each file provides a lookup for a given PublisherID to a list of similar PublisherIDs with a score ranking for how similar they are to each other (higher score means more similar).

Sources we should compare from, in priority order:

  • Sources the user has directly subscribed to
  • Sources the user has indirectly subscribed to (i.e. as part of a channel) and the user has visited the site recently
  • Sources the user has indirectly subscribed to (i.e. as part of a channel) and we have no interest signal

We will take that source list and use the similarity matrix map to produce a list of “suggested sources”.

List we should show, in priority order:

  • Sources that the user is not directly or indirectly subscribed to
  • Sources that the user is indirectly subscribed to (i.e. as part of a channel) (We should not show sources that the user is already directly subscribed to)

Note: when talking about “direct” subscriptions above, we refer to any mode of subscription: combined sources or rss feed.

Which similarity region files to download? Any regions which the user has channel or feed subscriptions. i.e. the same regions we download feed.json files for.

When should we download the similarity files? An appropriate time seems to be when downloading feed subscriptions, since that occurs when the user modifies their feed subscriptions, and is also when we calculate which regions to download from. However, there may be a couple benefits to doing it when downloading sources, since that is when we search through history. However, we can search history for publisher matches again at this new “source similarity comparison” time.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
petemillcommented, Oct 17, 2022

If this creates a lot of work then it might be best to identify a single rule that likely covers the most common cases. I think we would cover a lot of ground with “The locale the user’s OS is set to”.

Absolutely fine to at least start with that then build incrementally if needed, since that’s contained within the suggestion above.

2reactions
LorenzoMintocommented, Sep 23, 2022

I was thinking something like this. For the comparing priority, I would treat indirectly subscribed sources (via Channels) as simple unsubscribed sources, and only consider the following signals:

  • Sources the user has directly subscribed to
  • Sources the user has visited recently a threshold of times (independently of subscription status)

As for showing:

  • Sources that the user is not directly subscribed to and that have strong interest signal (history) (not coming via suggestions)
  • Sources that the user is not directly subscribed to (coming from suggestions)

I wouldn’t consider the indirect subscription signal unless it’s supported by a stronger interest signal (history), because for some categories/channels there might be sources that the user might entirely ignore and we should not prioritise those (i.e. a user subscribed to Entertainment but that is not interested in Music [Pitchfork, NME] at all).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Brave News adds new features for customizing feeds, and ...
Today Brave News introduced integrated RSS subscriptions, locally personalized suggestions, new sources and content channels powered by ...
Read more >
Brave News: Brave desktop users get custom RSS feeds support
To add a custom RSS feed to Brave, select customize while on the new tab page and enter/paste the address into the Feed...
Read more >
Brave (web browser) - Wikipedia
Brave is a free and open-source web browser developed by Brave Software, Inc. based on the ... which support BAT in the form...
Read more >
Firefox vs. Brave: Which is the better browser for you? - Mozilla
Just like the Firefox browser, the Brave browser is free, open source and ... replacement idea is a twist on the current model...
Read more >
Brave Private Fast Web Browser - Apps on Google Play
Brave Browser is a super fast, private and secure web browser with Adblock. It is 3X faster than other browsers and has over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found