--- pretty_name: Wikidata Entity Embeddings 0.2 license: cc0-1.0 language: - en - ar - fr - de tags: - wikidata - wikimedia - embeddings - vector-search size_categories: - 10M/shard-000001.parquet``` Each shard contains the following columns: | Field | Type | Description | |------|------|-------------| | `id` | string | Unique row identifier | | `vector` | string | Base64-encoded float32 embedding vector | | `lang` | string | Language used to generate the embedding | | `wdid` | string | Wikidata identifier (QID or PID) | ### How to Decode Vectors The `vector` column is encoded as base64 representations of little-endian float32 arrays. Example encoding and decoding: ```python from datasets import load_dataset import base64 import numpy as np LANGUAGE = 'en' def encode_vector(vector_arr: np.ndarray) -> str: binary_data = vector_arr.tobytes() return base64.b64encode(binary_data).decode('utf8') def decode_vector(vector_b64: str) -> np.ndarray: binary_data = base64.b64decode(vector_b64) return np.frombuffer(binary_data, dtype="