Page MenuHomePhabricator

Surfacing structured tasks: Create a proof of concept solution for generating Add Link suggestions on-the-fly
Open, HighPublic5 Estimated Story Points

Description

Background & Problem

Growth intends to surface Add Link tasks in read mode (T362584). Unfortunately, the task pool doesn't contain a suggestion for all articles (we stop enlarging it once it reaches 500 articles/topic, see the refreshLinkRecommendations.php maintenance script). One of the solutions to this problem is to attempt to generate a task recommendation on the fly,

Solution

Within this task, we should attempt to create an Add Link suggestion while the user read the article. Once the suggestion is available, the Add Link session can start. This can be a prototype level solution, locked behind the wgGESurfacingStructuredTasksEnabled feature flag. The goal here would to evaluate the speed and usability of the solution (can we generate recommendations quickly enough?).

Timebox: ~5 points (requires both investigation, communication, and advising on next steps)

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
KStoller-WMF moved this task from Inbox to Up Next on the Growth-Team board.
KStoller-WMF raised the priority of this task from Medium to High.Wed, Dec 4, 4:52 PM
KStoller-WMF set the point value for this task to 5.

Change #1102796 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] PoC(surfacing): request link recommendations while reading

https://gerrit.wikimedia.org/r/1102796

The proof of concept was surprisingly easy to get working. Locally, the request takes only about a second, though I did not try it out with very long pages.

Curious what you all think about this!

I think some of the thoughts from T378527#10384905 are relevant for this approach as well. Especially: can we somehow store that we have no suggestions for the combination of revision-id+config-hash+model-hash? That way, we would likely skip a lot of requests to the link-recommendation service coming from this approach here.

Change #1102909 had a related patch set uploaded (by Michael Große; author: Michael Große):

[operations/mediawiki-config@master] beta: enable updating link-suggestions from read-mode

https://gerrit.wikimedia.org/r/1102909

Change #1104602 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] stats(surfacing): track link recommendation api recommendations

https://gerrit.wikimedia.org/r/1104602

Change #1104602 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] stats(surfacing): track link recommendation api recommendations

https://gerrit.wikimedia.org/r/1104602

Change #1104624 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.6] stats(surfacing): track link recommendation api recommendations

https://gerrit.wikimedia.org/r/1104624

Change #1104624 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.44.0-wmf.6] stats(surfacing): track link recommendation api recommendations

https://gerrit.wikimedia.org/r/1104624

Mentioned in SAL (#wikimedia-operations) [2024-12-16T15:04:23Z] <ladsgroup@deploy2002> Started scap sync-world: Backport for [[gerrit:1104629|Kick bundlesize out of package.json (T382192 T360590)]], [[gerrit:1104633|fix(surfacing): Show highlights in lists as well (T381841)]], [[gerrit:1104624|stats(surfacing): track link recommendation api recommendations (T378536)]]

Mentioned in SAL (#wikimedia-operations) [2024-12-16T15:09:08Z] <ladsgroup@deploy2002> migr, ladsgroup: Backport for [[gerrit:1104629|Kick bundlesize out of package.json (T382192 T360590)]], [[gerrit:1104633|fix(surfacing): Show highlights in lists as well (T381841)]], [[gerrit:1104624|stats(surfacing): track link recommendation api recommendations (T378536)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-12-16T15:15:54Z] <ladsgroup@deploy2002> Finished scap sync-world: Backport for [[gerrit:1104629|Kick bundlesize out of package.json (T382192 T360590)]], [[gerrit:1104633|fix(surfacing): Show highlights in lists as well (T381841)]], [[gerrit:1104624|stats(surfacing): track link recommendation api recommendations (T378536)]] (duration: 11m 30s)

Change #1102796 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] feat(surfacing): request link recommendations while reading

https://gerrit.wikimedia.org/r/1102796

Change #1102909 merged by jenkins-bot:

[operations/mediawiki-config@master] beta: enable updating link-suggestions from read-mode

https://gerrit.wikimedia.org/r/1102909

Mentioned in SAL (#wikimedia-operations) [2024-12-17T14:27:58Z] <dcausse@deploy2002> Started scap sync-world: Backport for [[gerrit:1102909|beta: enable updating link-suggestions from read-mode (T378536)]]

Mentioned in SAL (#wikimedia-operations) [2024-12-17T14:34:27Z] <dcausse@deploy2002> migr, dcausse: Backport for [[gerrit:1102909|beta: enable updating link-suggestions from read-mode (T378536)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-12-17T14:46:24Z] <dcausse@deploy2002> Finished scap sync-world: Backport for [[gerrit:1102909|beta: enable updating link-suggestions from read-mode (T378536)]] (duration: 18m 26s)