The dataset viewer should be available soon. Please retry later.
TabLake-PT-Emb
Text-embedding vectors for the strings of TabLake-PT, a corpus of 65.0M web, Wikipedia, GitHub and database tables (wdc, sot, tapas, tapas_infobox, wikidbs, tabel, gittables). Tables that overlap the test sets of TabLake-Close and TabLake-Open were removed first. For research use only. The repository holds vectors and hashes, no source text.
Status: being filled. A shard folder is complete when it holds 8 cell-*.parquet and 8 text-*.parquet files;
cell vectors are uploaded first.
What is embedded
The tables are split into 64 shards of about one million tables each (all sources mixed). Every distinct string of a shard is embedded once in that shard, so a shard carries all the vectors its tables need:
- a cell, as
header: value, and a table title; - the text of a row and the text of a column.
Whole strings, the model's own vector size, float16, L2-normalised. Nothing is truncated.
Layout
| Path | Content |
|---|---|
<model>/shard-SS/cell-J.parquet (J = 0..7) |
vectors of the cells and titles of shard SS (00 to 63) |
<model>/shard-SS/text-J.parquet (J = 0..7) |
vectors of the row texts and column texts of shard SS |
<model> is the last part of the model name, e.g. Qwen3-Embedding-0.6B (1024-d).
Each file has two columns: h (uint64, ascending) is the hash of a string and v (fixed-size list of float16) its
vector. The eight files of a kind follow each other in hash order, so their h columns concatenated are sorted.
Files are Parquet with zstd and byte-stream-split encoding (lossless), 1000 rows per row group.
The hash of a string is the 8-byte BLAKE2b digest of its UTF-8 bytes read as a little-endian integer (0 is stored as 1).
The shard of a table is h64(f"{source}/{id}") % 64, with source and id as in TabLake-PT.
import hashlib, numpy as np, pyarrow as pa, pyarrow.parquet as pq
from huggingface_hub import snapshot_download
def h64(s):
return int.from_bytes(hashlib.blake2b(s.encode("utf-8", "surrogatepass"), digest_size=8).digest(), "little") or 1
def load_shard(shard, kind="cell", model="Qwen3-Embedding-0.6B", repo="mtybilly/TabLake-PT-Emb"):
d = snapshot_download(repo, repo_type="dataset", allow_patterns=f"{model}/shard-{shard:02d}/{kind}-*.parquet")
t = pa.concat_tables(pq.read_table(f"{d}/{model}/shard-{shard:02d}/{kind}-{j}.parquet") for j in range(8))
v = t["v"].combine_chunks()
return t["h"].to_numpy(), v.values.to_numpy().reshape(len(t), v.type.list_size)
h, v = load_shard(h64("tabel/<table id>") % 64)
i = np.searchsorted(h, np.uint64(h64("Country: France"))) # v[i] if h[i] matches
For training, read shard after shard: one shard is self-contained. Two different strings can share a 64-bit hash; within a shard the chance is negligible.
Sources and licenses
The vectors are derived from these corpora. Their text is not redistributed here.
| Source | Share of tables | License |
|---|---|---|
| WDC Web Table Corpus 2015 | 77% | no data license stated |
| TAPAS pre-training tables (Wikipedia) | 9% | CC BY-SA 3.0 |
| WDC Schema.org Table Corpus 2023 | 8% | provided for research purposes |
| WikiDBs | 2.5% | CC BY 4.0 |
| TabEL | 2% | CC BY 4.0 |
| GitTables | 1.6% | CC0, plus the licenses of the source repositories |
- Downloads last month
- 895