Page MenuHomePhabricator

Review the current automatic recommendation mechanism
Closed, ResolvedPublic

Description

Review the current recommendation mechanism, and figure out who else is working on that problem.

In the android beta app (ADD SCREENSHOT) I see trending, and because you read, and in the news, picture of the day)

-> We should figure out, where "because you read" gets its data from.

@mschwarzer can you look into the source code.

Event Timeline

@Physikerwelt can you tell me where I can find the respective source code?

EDIT: Found it:

SuggestionsTask: Task for getting suggestions for further reading. Currently powered by full-text search based on the given page title.

https://github.com/wikimedia/apps-android-wikipedia/blob/63749f61f01b4c5eeec9f3d07c537228416e4149/app/src/main/java/org/wikipedia/page/SuggestionsTask.java

@Physikerwelt not sure if "Article-Recommendation" tag is used correctly here. That tag is for article recommendation for creation, and not for read. (which I acknowledge is not clear from the tag alone.)

The current automatic recommendation mechanism uses the MediaWikiApi ("morelike:"-query).

  • Is it feasible to modify the MediaWiki API endpoint? (I guess not within our schedule)
  • Can we plug in our own API to the Android app?

Clicks on article recommendations are tracked via the Analytics funnel API:

https://github.com/wikimedia/apps-android-wikipedia/blob/4f35821eee6a713afaed0fe764d12841a1e920b9/app/src/main/java/org/wikipedia/analytics/SuggestedPagesFunnel.java

SCHEMA_NAME = "MobileWikiAppArticleSuggestions";
...
    public void logSuggestionClicked(PageTitle currentPageTitle, List<SearchResult> suggestedTitles,
                                     int clickedIndex) {
        log(
                currentPageTitle.getSite(),
                "action", "clicked",
                "pageTitle", currentPageTitle.getDisplayText(),
                "readMoreList", TextUtils.join("|", suggestedTitles),
                "readMoreIndex", clickedIndex
        );
}

@mschwarzer which API is used. If the restbase is used that won't be a problem. Otherwise I'm uncertain.

debt subscribed.

Removing the backlog tag for now - let us know when we can help! :)

Removing #research-and-data as this is not officially on our board but please ping us if we can help.

@mschwarzer I think this is done. Please reopen if there is still work left to do.