Logo vun Wikidata Vector Search

Wikidata Vector Search

Communautéit
fuzheado
wikidata-vector-search

Query Wikidata by meaning, concept, or natural-language description — not just by exact label match. Uses semantic embeddings to find items (QIDs) and properties (PIDs) via vector similarity, keyword search, and Reciprocal Rank Fusion. Covers fuzzy semantic search, concept matching, similarity lookups, cross-lingual queries, and "find like this" when you do not know the exact QID or label

Iwwersiicht

Editeurfuzheado
RepositoryWikipedia-AI-Skills
Skill-Nummwikidata-vector-search
Stären
27
Forks
10
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum fuzheado op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Wikidata Vector Search an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikidata-vector-search
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/wikidata-vector-search .claude/skills/wikidata-vector-search
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Wikidata Vector Search an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Wikidata Vector Search automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Wikidata Vector Search net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

⚠️ User-Agent required: All calls to the Vector Database API require a descriptive User-Agent header. Requests without one are blocked with HTTP 403. See the wikimedia-api-access skill for the correct format.

⚠️ Alpha-quality service: The Vector Database is in early testing (v0.2.1). Results may be incomplete or inaccurate. Queries are sent to JinaAI for embedding and logged for up to 90 days. The instanceof filter is non-functional in the current release.

The Wikidata Vector Database (wd-vectordb.wmcloud.org), part of the Wikidata Embedding Project led by Wikimedia Deutschland, stores semantic embeddings of Wikidata entities. By default (scope=with_sitelinks) it searches ~23 million entities — those with at least one Wikipedia article, which is what the CC0 bulk dataset covers (23M unique entities, 44M vectors across the language shards, 512-dim), computed from the May 2026 Wikidata snapshot (see the project page's changelog). Since September 2026 the database also indexes Wikidata items without a Wikipedia page: pass scope=no_sitelinks or scope=all to reach them. It enables context-aware search — finding items by what they mean rather than by exact string matching.

🧩 Two ways in: the hosted Wikidata MCP server (https://wd-mcp.wmcloud.org/mcp/) exposes this vector search plus SPARQL and statement tools to any MCP client — no API key. And the raw vectors themselves are downloadable in bulk (CC0 Hugging Face dataset) or per-entity via return_vectors=true. See The Vectors Themselves and MCP Access.

When to reach for this instead of SPARQL:

You want to...Use thisUse SPARQL if...
Find items "related to maritime exploration in the 1600s"Vector search — understands concept, not just keywordsYou need exact structured filters like ?item wdt:P31 wd:Q5
Discover the QID for something when you don't know the labelVector search — fuzzy match by descriptionYou know the exact English label
Compare how "similar" two entities are semanticallySimilarity score — vector dot productYou need graph distance (shortest path between items)
Search across languages without specifying which oneVector search with lang=allYou need results in one specific language only
Get every human born in 1900 with a Nobel Prize✗ Vector search can't do thisSPARQL — exact filters, joins, aggregation

The Vector Database complements SPARQL: use vector search for discovery and fuzzy matching, then use SPARQL or the Wikibase REST API for structured follow-up. See the wikidata skill for SPARQL and structured queries.


How It Works

Every Wikidata item (QID) and property (PID) is pre-computed into a high-dimensional vector embedding using JinaAI's multilingual model (100+ languages, 8192 token limit). When you submit a query:

  1. Your query text is embedded into the same vector space
  2. Two searches run in parallel:
    • Vector Search — dot-product similarity against all entity vectors (captures meaning)
    • Keyword Search — BM25-style text match over labels and aliases (captures exact terms)
  3. Reciprocal Rank Fusion (RRF) merges both ranked lists: rrf_score = 1 / (rank + 60). Results found by both methods get a boost.
  4. Optional reranker — a cross-encoder model re-scores the top results if rerank=true

Language Support

CategoryLanguagesBehavior
Dedicated vectorsar, de, en, frSearch within that language's vectors only
Other languages140+ (ace, af, am, arz, ast, az, ... zu)Query is machine-translated to English, then searched across all vectors
allAll languagesSearch the entire vector database regardless of language

Set lang=all (the default) for the broadest results. Set a specific lang (e.g. lang=de) when you need results from a particular language's embedding space.


Endpoints

All endpoints are GET requests to https://wd-vectordb.wmcloud.org.

1. Search Items — GET /item/query/

Find Wikidata items (QIDs) by semantic meaning.

ParameterTypeDefaultDescription
querystringrequiredFree-text description, label, or QID. Examples: "Douglas Adams", "Q42", "author of Hitchhiker's Guide to the Galaxy", "marine biologist who wrote about conservation"
langstring"all"Language code (en, de, ar, fr, all). Use all to search everything; use a specific code to constrain vector space. The utility script and sitelink filter also accept full project codes like enwiki, frwikisource, commonswiki — see the script section below.
scopestring"with_sitelinks"Which items to search: with_sitelinks (items linked to Wikipedia pages — the ~23M-entity default), no_sitelinks (items with no linked Wikipedia page), or all (both). no_sitelinks collections are included regardless of lang. The no_sitelinks and all options were added September 2026; a client that predates them searches only the default scope.
Kinteger50Number of results (minimum 1)
instanceofstring—Comma-separated QIDs to filter by class (⚠️ currently non-functional)
rerankbooleanfalseApply cross-encoder reranker for improved relevance (slower)
return_vectorsbooleanfalseInclude raw embedding vectors in the response

Response: Array of:

json
{
  "QID": "Q42",
  "similarity_score": 0.8758,
  "rrf_score": 0.0392,
  "source": "Vector Search, Keyword Search"
}

The source field tells you whether the item was found by vector similarity, keyword match, or both.

2. Search Properties — GET /property/query/

Find Wikidata properties (PIDs) by semantic meaning. Same parameters as item search, plus:

ParameterTypeDefaultDescription
exclude_external_idsbooleanfalseFilter out external-identifier-type properties (cleaner results for data properties)

Response: Same shape as item search but with PID instead of QID.

3. Similarity Score — GET /similarity-score/

Compare a free-text query against a specific list of Wikidata entities. Useful for disambiguation or ranking candidates.

ParameterTypeDefaultDescription
querystringrequiredFree-text to compare against
qidstringrequiredComma-separated QIDs/PIDs to score (e.g., "Q42,Q2,Q36153")
langstring"all"Language code
return_vectorsbooleanfalseInclude raw vectors

Response: Array sorted by similarity descending:

json
[
  { "QID": "Q2",   "similarity_score": 0.5423 },
  { "QID": "Q36153", "similarity_score": 0.5135 },
  { "QID": "Q42",  "similarity_score": 0.5103 }
]

Worked Examples

Example 1: Finding a QID for an entity when you don't know the label

You have a description but no exact label. For example, "the author who wrote about time travel and black holes and was married to a scientist."

bash
curl -sL -H "User-Agent: MyBot/1.0 (me@example.com) WikidataSearch" \
  "https://wd-vectordb.wmcloud.org/item/query/?query=author+who+wrote+about+time+travel+and+black+holes+married+to+scientist&lang=en&K=3" | \
  python3 -m json.tool

Result (top 3):

json
[
  { "QID": "Q24255708",  "similarity_score": 0.81, "source": "Vector Search" },
  { "QID": "Q3540992",  "similarity_score": 0.79, "source": "Vector Search" },
  { "QID": "Q4659809",  "similarity_score": 0.78, "source": "Vector Search" }
]

Then resolve the QIDs to labels via the Wikidata REST API:

bash
curl -sL -H "User-Agent: ..." \
  "https://www.wikidata.org/wiki/Special:EntityData/Q970555.json" | \
  python3 -c "import json,sys; d=json.load(sys.stdin); print(d['entities']['Q970555']['labels']['en']['value'])"
# → "Jane Hawking"  (married to Stephen Hawking, wrote about his life)

The intended target (Stephen Hawking's wife or perhaps his daughter) is surfaced even though the query text doesn't match any existing label exactly.

Example 2: Finding a property by description

You remember there's a property for "date of birth" but can't remember the PID.

bash
curl -sL -H "User-Agent: MyBot/1.0 (me@example.com) WikidataSearch" \
  "https://wd-vectordb.wmcloud.org/property/query/?query=date+of+birth&lang=en&K=5" | \
  python3 -m json.tool

Result (top 3):

json
[
  { "PID": "P569",     "similarity_score": 0.80, "source": "Vector Search" },
  { "PID": "P19",      "similarity_score": 0.72, "source": "Keyword Search" },
  { "PID": "P3150",    "similarity_score": 0.77, "source": "Vector Search" }
]

P569 is indeed date of birth — top result.

Example 3: Disambiguation — which QID matches this entity?

You have a set of candidate QIDs and need to determine which one a piece of text refers to. Use the similarity-score endpoint:

bash
curl -sL -H "User-Agent: MyBot/1.0 (me@example.com) WikidataSearch" \
  "https://wd-vectordb.wmcloud.org/similarity-score/?query=mathematics&qid=Q42,Q2,Q36153&lang=en" | \
  python3 -m json.tool

Result:

json
[
  { "QID": "Q2",      "similarity_score": 0.542 },
  { "QID": "Q36153",  "similarity_score": 0.514 },
  { "QID": "Q42",     "similarity_score": 0.510 }
]

Q2 (Earth) is scored highest against the query "mathematics" — correct, since Q36153 is "Leonhard Euler" (a mathematician, but a specific person) and Q42 is "Douglas Adams" (a writer). The entity about the broader mathematical concept would be Q395 (mathematics), which is included here as a negative example.

Example 4: Cross-lingual search

Search for "science fiction novel" in a language without dedicated vectors:

bash
curl -sL -H "User-Agent: MyBot/1.0 (me@example.com) WikidataSearch" \
  "https://wd-vectordb.wmcloud.org/item/query/?query=ciencia+ficci%C3%B3n+novela&lang=es&K=3" | \
  python3 -m json.tool

The query is translated to English internally, then searched against the full database. Results include science fiction novels from English Wikidata entities.


SOP: When to Use Vector Search vs SPARQL vs the Wikibase REST API

The Vector Database fills a specific niche: semantic discovery when you don't know the exact identifier. Use this decision tree:

Need to find Wikidata entities?
│
├─ You know the exact label or QID → Use Wikidata REST API
│   https://www.wikidata.org/wiki/Special:EntityData/{QID}.json
│
├─ You know the exact structure (class, property, value) → Use SPARQL
│   See the [wikidata](../wikidata/SKILL.md) skill
│
├─ You have a free-text description and want the closest entities → Use Vector Search
│   /item/query/?query=...
│
├─ You have candidate QIDs and want to rank them → Use Similarity Score
│   /similarity-score/?query=...&qid=Q1,Q2,Q3
│
└─ You want properties by description → Use Property Search
    /property/query/?query=...

Chaining with other skills

The Vector Database only returns QIDs/PIDs and scores. To turn those into usable Wikipedia data, chain with:

  1. Wikidata REST API (from the wikidata skill) to get labels, descriptions, and statements for each QID
  2. Wikibase Action API to search or edit
  3. SPARQL for structured filtering of a result set

Example chain — get the label and description for every top result:

bash
#!/bin/bash
QUERY="deep sea exploration vehicle"
curl -sL -H "User-Agent: MyBot/1.0 (me@example.com) WikidataSearch" \
  "https://wd-vectordb.wmcloud.org/item/query/?query=$(echo $QUERY | sed 's/ /+/g')&lang=en&K=5" | \
  python3 -c "
import json, sys, urllib.request

results = json.load(sys.stdin)
for r in results:
    qid = r['QID']
    url = f'https://www.wikidata.org/wiki/Special:EntityData/{qid}.json'
    with urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': 'MyBot/1.0 (me@example.com) WikidataSearch'})) as resp:
        data = json.load(resp)
        entity = data['entities'][qid]
        label = entity.get('labels', {}).get('en', {}).get('value', '?')
        desc = entity.get('descriptions', {}).get('en', {}).get('value', '')
        print(f\"{r['QID']:>8}  {r['similarity_score']:.4f}  {label:40s}  {desc[:80]}\")
"

SOP: Handling Edge Cases and Pitfalls

1. The instanceof filter is non-functional

The parameter is accepted but silently ignored in the current alpha. Results are not filtered by class even when you specify instanceof=Q5. Do not rely on this parameter. If you need class-based filtering, use SPARQL instead:

sparql
SELECT ?item WHERE {
  ?item wdt:P31 wd:Q5 .       # instance of human
  ?item rdfs:label "Einstein"@en .
}

2. Only QIDs/PIDs are returned — no labels

Every Vector Database response contains identifiers and scores only. You must make a follow-up call to the Wikidata REST API to get human-readable labels, descriptions, or statements. See the chaining example above.

3. The top result may be the concept itself, not an instance

Querying "programming language" returns Q9143 (the concept "programming language") before Q380 (the language "C++") or Q261 (the language "Python"). If you want instances of a class instead of the class itself, this is not the right tool — use SPARQL.

4. Semantic search is not question answering

The query "Who wrote Hitchhiker's Guide to the Galaxy?" returns Q3107329 (the novel itself) rather than Q42 (its author). The vector database finds entities similar to the query text, it does not understand the grammatical structure of questions. To answer questions, chain with the Wikibase API or SPARQL after getting candidate QIDs.

5. User-Agent is mandatory

The server rejects requests without a descriptive User-Agent header. Use the format from wikimedia-api-access.

6. Rate limiting and caching

While the Vector Database doesn't document explicit rate limits, the web UI starts embedded queries immediately. For programmatic use, if you're making many queries:

  • Cache results to avoid re-querying for the same search terms
  • Batch multiple queries if possible
  • Respect the service being in alpha — report issues rather than hammering the endpoint

Standalone Utility Script

The skill ships a query script that searches the Vector Database, automatically resolves every QID/PID to its label and description (batching all lookups into one API call), and by default filters to only main-namespace Wikipedia articles (no categories, templates, portals, etc.).

Basic usage

bash
# Search items (default: top 5, English labels, enwiki articles only)
./scripts/wd-vector-search.sh "marine biologist who wrote about conservation"

# Search items — top 10
./scripts/wd-vector-search.sh "quantum physicist 20th century" --K 10

# Show ALL entities (categories, journals, templates, etc.)
./scripts/wd-vector-search.sh "marine biologist" --no-filter

# Search properties
./scripts/wd-vector-search.sh "date of birth" --property

# Similarity score against specific entities
./scripts/wd-vector-search.sh "mathematics" --similarity Q42,Q2,Q36153

# Raw JSON output (QIDs/PIDs only, for chaining with other tools)
./scripts/wd-vector-search.sh "Einstein" --json | jq '.[].QID'

# With reranker
./scripts/wd-vector-search.sh "deep sea exploration" --rerank

Language and project selection (--lang)

The --lang flag controls three things at once: the Vector DB query language, the sitelink filter (what Wikimedia project to check), and the label/description language. It accepts:

--lang valueVector DBSitelink filterLabelsReturns...
en (default)English vectorsenwiki (mainspace)EnglishWikipedia articles
frFrench vectorsfrwiki (mainspace)FrenchFrench Wikipedia articles
deGerman vectorsdewiki (mainspace)GermanGerman Wikipedia articles
enwikiEnglish vectorsenwiki (mainspace)EnglishSame as en (explicit)
frwikisourceFrench vectorsfrwikisource (any)FrenchFrench Wikisource pages
commonswikiEnglish vectorscommonswiki (any)EnglishCommons category names (not media files)
enwiktionaryEnglish vectorsenwiktionary (any)EnglishWiktionary entries
metawikiEnglish vectorsmetawiki (any)EnglishMeta-Wiki pages

commonswiki note: The Vector Database indexes Wikidata items, not Commons media files directly. When filtered by commonswiki, the results are Wikidata items that have a Commons category page — so you get category names (e.g. "Category:Marine biologists"). To find actual media files on Commons, use the wikimedia-commons skill instead.

bash
# French Wikipedia — searches French vectors, filters by frwiki, shows French labels
./scripts/wd-vector-search.sh "écrivain français" --lang fr

# French Wikisource — filters to items with a frwikisource page
./scripts/wd-vector-search.sh "Victor Hugo" --lang frwikisource

# Commons categories — filters to items with a Commons category
./scripts/wd-vector-search.sh "marine biologist" --lang commonswiki

# German Wikipedia
./scripts/wd-vector-search.sh "programmiersprache" --lang de

Example output

🔍 Searching Wikidata Vector Database...
   Query: marine biologist
   Mode: item
   Language: en (site filter: enwiki, labels: en)
   Results: 5
   Filter: enwiki pages only (use --no-filter for ALL entities)

   (removed 4 entities without a enwiki mainspace page)
      Item   Score  Label                                               Description
  ----------------------------------------------------------------------------------------------------
🔤 Q3640160  0.8340  marine biologist                                    scientist specializing in marine biology

Each row shows an icon: 🧠 (vector similarity), 🔤 (keyword match), or 🧠🔤 (both).

How the sitelink filter works

  1. After the Vector DB returns its top K results, the script calls the Wikidata Action API with one batch request per phase:

    • Phase 2 (sitelink check): action=wbgetentities&props=sitelinks&sitefilter={SITE_CODE} — checks all K QIDs in one call

    • Phase 3 (labels): action=wbgetentities&props=labels|descriptions&languages={lang}|mul|en — fetches labels and descriptions in one call

    ⚠️ Always include mul in the languages parameter. Many Wikidata entities (especially proper names like Q185 "Larry Sanger") have no per-language label — only a single multilingual label (language: mul). If you request only languages={lang}|en, the API filters mul out of the response. You'll get an empty labels object and the entity will appear label-less. Always pass {lang}|mul|en and resolve client-side: labels[lang] || labels["mul"] || labels["en"].

  2. For language Wikipedias (enwiki, frwiki, dewiki, etc.): only main-namespace articles pass (pages whose sitelink title doesn't start with Category:, Template:, Portal:, File:, Module:, etc.)

  3. For other projects (commonswiki, frwikisource, enwiktionary, metawiki, etc.): any page with a sitelink is included — categories, templates, and all namespaces are valid results

  4. Entities without a qualifying sitelink are silently dropped; a summary line shows how many were removed

If all top K results are non-article entities (common for queries like "marine biologist" where the Vector DB returns categories first), the script warns you and suggests --no-filter or a higher --K.

Why --no-filter?

Beyond Wikipedia main-namespace articles, the database also holds non-article entity types — categories, journals, templates, disambiguation pages, Commons categories, and (since September 2026) items with no Wikipedia page at all. The script filters to main-namespace articles by default because those other types crowd out article results, so --no-filter is how you see everything the database returns for your query.

⚠️ --no-filter is a client-side entity-type filter; it does not change server-side coverage. That is the API's scope parameter: with_sitelinks (default — items linked to Wikipedia pages), no_sitelinks (items with no linked Wikipedia page, added September 2026), or all (both). So an item missing from a default search is not necessarily missing from Wikidata — query with scope=all, or fall back to SPARQL or wbsearchentities.

Known Limitations (Alpha v0.2.1)

LimitationImpactWorkaround
instanceof filter ignoredCan't restrict results to a classUse SPARQL for class-filtered queries
Only 4 languages with dedicated vectors (ar, de, en, fr)Other languages fall back to English translationUse lang=all for best cross-lingual results
No freshness guaranteeMay lag behind live WikidataCheck entity revision IDs via REST API
Top result can be the concept item, not an instance"programming language" → Q9143, not Python or C++Use SPARQL for instance-level queries
No structured data in responseQIDs only, no labels/statementsChain with Wikidata REST API
Queries logged to JinaAI for 90 daysPrivacy consideration for sensitive queriesUse lang parameter to minimize data exposure

Relationship to Other Skills

  • wikidata — SPARQL, Wikibase REST and Action APIs. Vector search is a complement: use vector for discovery, then SPARQL for precision.
  • wikimedia-api-access — Required User-Agent format and rate-limiting patterns for all Wikimedia API calls.
  • wikipedia-en-article-audit — Phase 2 verification could be accelerated by using vector search to surface candidate QIDs for claim cross-referencing.
  • wikimedia-commons — No direct overlap; Commons has its own media similarity search via the Multimedia API.

The Vectors Themselves

Three routes to actual embeddings rather than just ranked QIDs:

RouteWhat you getNotes
API return_vectors=trueThe 512-dim vector for each returned entity, inline in the JSONPer-entity; you need a query first. Verified 2026-10-04: /item/query/?query=Douglas+Adams&lang=en&K=1&return_vectors=true → vector = 512 floats
Hugging Face dataset (bulk)All of themphilippesaade/Wikidata_Vectors_0.2 — CC0-1.0, public, not gated; 538 parquet shards (~213 MB each) under data/{en,fr,de,ar}/; columns id, vector (base64-encoded float32), lang, wdid. Card reports 44M vectors / 23M unique entities, 512-dim. Last modified 2026-08-25
Recompute locallyYour own vectorsPipeline is open source (WikidataTextEmbedding) using Jina Embeddings v3 — the same model, so your vectors stay comparable to the published ones

Decoding a vector from the dataset:

python
import base64, numpy as np
vec = np.frombuffer(base64.b64decode(row["vector"]), dtype=np.float32)   # shape (512,)

⚠️ Download history: vector downloads were temporarily disabled (Nov 2025–Feb 2026) then re-enabled in March 2026 via the HF dataset above. Older instructions pointing at a removed download endpoint should be replaced by this dataset.

MCP Access

Wikimedia Deutschland runs a hosted Wikidata MCP server wrapping this vector database (plus statements and SPARQL) for agent use — no API key required.

json
{
  "mcpServers": {
    "wikidata": { "type": "streamable_http", "url": "https://wd-mcp.wmcloud.org/mcp/" }
  }
}

Verified 2026-10-04 by live MCP handshake: server Wikidata MCP v1.15.0, protocol 2025-06-18, capabilities tools/prompts/resources/experimental, 6 tools — search_items, search_properties, get_statements, get_statement_values, get_instance_and_subclass_hierarchy, execute_sparql. search_items / search_properties are the vector-search entry points (hybrid vector + keyword, keyword fallback when vector search is unavailable).

Which to use: the MCP when an agent should explore Wikidata unaided (it chains search → statements → SPARQL for you); the raw API when you need similarity scores, similarity-score, or bulk vectors.

References

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Wikidata Vector Search?

Query Wikidata by meaning, concept, or natural-language description — not just by exact label match. Uses semantic embeddings to find items (QIDs) and properties (PIDs) via vector similarity, keyword search, and Reciprocal Rank Fusion. Covers fuzzy semantic search, concept matching, similarity lookups, cross-lingual queries, and "find like this" when you do not know the exact QID or label

Firwat Wikidata Vector Search op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Wikidata Vector Search besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Wikidata Vector Search an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikidata-vector-search an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Wikidata Vector Search benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Wikidata Vector Search benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Wikidata Vector Search domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Wikidata Vector Search gratis?

Jo. De Skill gëtt vum fuzheado ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇