Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-skill-wikipedia

PyPI License Python

Wikipedia skill for OpenVoiceOS. Adds a voice interface on top of ovos-wikipedia-plugin, which handles all Wikipedia search and retrieval.

The skill supports two answer modes:

  • Explicit intent: handles utterances that name Wikipedia directly, such as "search Wikipedia for X" or "what does Wikipedia say about X". These always go to this skill.
  • Common Query: handles general knowledge questions, such as "what is X" or "tell me about X", through the OVOS Common Query pipeline. The pipeline asks all registered knowledge skills for an answer and picks the one with the highest confidence score. Wikipedia competes alongside other knowledge skills such as Wolfram Alpha and WordNet.

If you name Wikipedia, this skill answers directly. If you ask a general question, this skill answers only when it has the most confident response among the competing skills.


Installation

pip install ovos-skill-wikipedia

Explicit intent utterances

These always route to this skill because they name Wikipedia explicitly:

  • "Search Wikipedia for Ada Lovelace"
  • "What does Wikipedia say about beans?"
  • "Look up the Pembroke Welsh Corgi on Wikipedia"
  • "Wiki chocolate"
  • "Check wiki for Elon Musk"

Common Query utterances

These go through the pipeline — Wikipedia answers if it wins:

  • "What is a black hole?"
  • "Tell me about the Roman Empire"
  • "Who was Marie Curie?"

Common Query pipeline

When the Common Query pipeline plugin is active, this skill competes against other knowledge skills (e.g. Wolfram Alpha, WordNet) to answer general questions. The pipeline selects the response with the highest confidence score.


Sub-plugins

All sub-plugins are optional. Configure them via ~/.config/mycroft/skills/ovos-skill-wikipedia.openvoiceos/settings.json:

{
  "extractive_qa": "ovos-bm25-solver",
  "reranker": "ovos-bm25-reranker",
  "keyword_extractor": "ovos-rake-keywords"
}

Reranker (reranker)

Wikipedia searches often return several candidate pages for ambiguous topics. A search for "Mercury" can return pages about the planet, the element, or the Roman god. Without a reranker, the skill orders results only by a fuzzy match between the query and the page title or summary.

A reranker re-scores all candidate pages against the original query with a cross-encoder model, and moves the most relevant page to the top. This step improves voice answer quality more than any other setting, because a wrong page pick gives a completely irrelevant spoken answer.

{ "reranker": "ovos-bm25-reranker" }

For better accuracy at the cost of more CPU, use a neural cross-encoder like ovos-flashrank-reranker-plugin.

Extractive QA (extractive_qa)

By default the skill speaks the full introductory summary of the best Wikipedia article, which can be several sentences long. An extractive QA plugin reads that summary and extracts the single passage most likely to directly answer the user's question.

Without extractive QA — "Tell me about Ada Lovelace":

"Ada Lovelace was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation..."

With extractive QA — same query:

"Ada Lovelace was the first to recognise that the machine had applications beyond pure calculation."

Much more natural for a voice interface.

{ "extractive_qa": "ovos-bm25-solver" }

For better precision, use a reading-comprehension model like ovos-roberta-qa-plugin.

Keyword Extractor (keyword_extractor)

The initial Wikipedia search can return no results for conversational phrasing, such as "tell me more about that thing on the moon". When this happens, the keyword extractor pulls the most relevant terms from the query and retries the search with a cleaner keyword.

Without it, over-specific or colloquial queries silently return nothing. With it, the skill recovers and finds the right page in most cases.

{ "keyword_extractor": "ovos-rake-keywords" }

License

Apache 2.0 — see LICENSE.

Release files for ovos-skill-wikipedia 0.10.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-skill-wikipedia 0.10.0a1
File Size Uploaded
ovos_skill_wikipedia-0.10.0a1.tar.gz 892.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-skill-wikipedia 0.10.0a1
File Interpreter ABI Platform
ovos_skill_wikipedia-0.10.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / ovos_skill_wikipedia-0.10.0a1.tar.gz

Download URL ovos_skill_wikipedia-0.10.0a1.tar.gz
Size 892.9 kB
Tags Source
SHA-256 checksum
How to use checksums
deb7b0c2c8c29e1161dd3daffe28380351d3b22e05aae9ede4674af8b0d258af
BLAKE2b-256 checksum
How to use checksums
df9d5aade592e17552902c773c83c99e08a604124b4c77103bf16abf25463900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_skill_wikipedia-0.10.0a1-py3-none-any.whl

Download URL ovos_skill_wikipedia-0.10.0a1-py3-none-any.whl
Size 914.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afb8ebfe1beee440e840033fd2978770edff83f0a4372a70a47b25c40d4985b5
BLAKE2b-256 checksum
How to use checksums
ed16cad2c247a0b87c06c68589f85b29375a9085e06697de7538b48e35d761c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.10.0a1 This release

2 release files

0.8.10

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.6

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.5.14

2 release files

0.5.10

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page