Skip to content

query_wikipedia returns Māori language article instead of wharepaku-specific content #1075

@lokhor

Description

@lokhor

Summary

When the user asks about "wharepaku" (or an STT-normalised variant), query_wikipedia returns the Māori language article (te reo Māori Wikipedia) instead of an English article about wharepaku as a cultural term. The user gets a response about the Māori language rather than the entity they asked about.

Root cause

Wikipedia's search algorithm ranks the Māori-language edition (mi.wikipedia.org) higher than the English article for terms like "wharepaku". The query_wikipedia skill doesn't scope to English Wikipedia or disambiguate language editions.

Observed

User: "what is a fattybaku"
(STT normalises to wharepaku)
Model calls query_wikipedia → returns Māori language article
Response: "Kia ora! Wharepaku is the Māori language... wait, that's just the language article"

Suggested fix

Either:

  1. Add a lang:en or srlang=en parameter to the Wikipedia API query
  2. Filter results to prefer English Wikipedia editions
  3. If the best fix for C.1 is implemented (prefer cultural memory over Wikipedia), this issue may be resolved as a side effect

Acceptance criteria

  • query_wikipedia for "wharepaku" returns English article content, not Māori language article
  • No regression for genuine multilingual Wikipedia queries (rare on this device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:mediumUseful, schedule when reasonablesize:SSmall — well-defined, half dayvoice

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions