Page MenuHomePhabricator

Extend Article Topics model to support `revision_id` parameter.
Closed, ResolvedPublic

Description

The new service will work as currently when no revision_id is passed. If revision_id is passed, we predict based on the state of the page linked to the specific revision.

Event Timeline

Change #1226839 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[machinelearning/liftwing/inference-services@main] article-topics: Add support for revision_id parameter.

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

Change #1226839 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] article-topics: Add support for revision_id parameter.

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

Change #1229491 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[operations/deployment-charts@master] ml-services: Update image for Article Topic model.

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

Change #1229491 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Update image for Article Topic model.

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

Change #1229560 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[operations/deployment-charts@master] ml-services: Add replicas for article topic model.

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

Change #1229560 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Add replicas for article topic model.

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

Change #1229571 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[machinelearning/liftwing/inference-services@main] article-topic: Use smaller batches when requesting QIDs.

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

Change #1229571 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] article-topic: Use smaller batches when requesting QIDs.

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

Change #1230260 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[operations/deployment-charts@master] ml-services: Update outlink article topic model image.

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

Change #1230260 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Update outlink article topic model image.

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

Change #1233106 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[machinelearning/liftwing/inference-services@main] article-topic: Optimize query batching.

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

Change #1233106 merged by jenkins-bot:

[machinelearning/liftwing/inference-services@main] article-topic: Optimize query batching.

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

Change #1233125 had a related patch set uploaded (by Bartosz Wójtowicz; author: Bartosz Wójtowicz):

[operations/deployment-charts@master] ml-services: Update image for Article Topic model.

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

Change #1233125 merged by jenkins-bot:

[operations/deployment-charts@master] ml-services: Update image for Article Topic model.

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

The new service supporting revision_id as an optional input parameter is live.
As expected, the queries using the revision_id parameter are ~4x slower due to the separate queries we need to make to catch QIDs linked to a specific revision of the page.
The API documentation is also updated now: https://api.wikimedia.org/wiki/Lift_Wing_API/Reference/Get_articletopic_outlink_prediction.