You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Add Link: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Kosta Harlan
No edit summary
imported>Kosta Harlan
Line 21: Line 21:
== Background reading ==
== Background reading ==


* [https://docs.google.com/document/d/1LAvfF-mQ2VfH-mTylGgDAeG6vNEwODuu5azAM-v4OJg/edit# Summary of project architecture]
* [https://docs.google.com/document/d/1Y0Jt2N20e7-H83MMAqVYcSB-UIGba1YoSQE39z2dlds/edit# Link Recommendation Project Architecture]
* [https://docs.google.com/document/d/1Y0Jt2N20e7-H83MMAqVYcSB-UIGba1YoSQE39z2dlds/edit# Link Recommendation Project Architecture]
* [https://docs.google.com/document/d/187LPs2c5j13O8dlemwsWMEkn4__LgaN7TcXwEkakxYY/edit# Technical Plan for Productization of "Add a Link"]
* [https://docs.google.com/document/d/187LPs2c5j13O8dlemwsWMEkn4__LgaN7TcXwEkakxYY/edit# Technical Plan for Productization of "Add a Link"]

Revision as of 10:39, 21 September 2020

This page contains information about the infrastructure used for the Add a Link structured task project (task T252822)

High-level summary

  • The Link Recommendation Service is accessible via HTTP (see task T258978) which accepts an article ID and wiki ID and returns raw wikitext of an article with annotated wikitext containing link recommendations. It does not have caching or storage; the client is responsible for doing that.
  • The search index stores metadata about which articles have link recommendations via a field we set per article
  • A MySQL table per wiki is used for caching the actual link recommendations (format to be determined task T261411)
  • A maintenance script regularly generates link recommendations by iterating over each Search/articletopic and calling the Link Recommendation Service
    • the maintenance script caches the results in the MySQL table, then sends an event to Event_Platform/EventGate, where the Search pipeline ensures that the index is updated with the links/nolinks metadata for the article.
    • on page edit and deletion, link recommendations are regenerated via the job queue and the same code and APIs that are utilized in the maintenance script

Teams / Contact

Background reading