Dataset Viewer
Auto-converted to Parquet Duplicate
text_id
string
fragment_id
string
talker_id
string
subject_id
string
model
string
provider
string
dim
int32
embedding
list
date
date32
house
string
15bede45-5d17-597b-8d52-9c82f194800e
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
null
nomic-embed-text
ollama
768
[ 0.017086941748857498, 0.010803795419633389, -0.17525488138198853, -0.012983889319002628, 0.04450562596321106, 0.03299249708652496, -0.005556624382734299, -0.06024346873164177, 0.0035051903687417507, -0.08366427570581436, -0.04239053651690483, 0.03665589913725853, 0.020141607150435448, -0.0...
2017-02-07
Senate
9ab32c3b-de82-550c-adcc-6bc097d2d7c7
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
null
nomic-embed-text
ollama
768
[ 0.04784860834479332, 0.03566748648881912, -0.15603919327259064, -0.07070015370845795, 0.06169528886675835, 0.0443134643137455, -0.025964509695768356, 0.022648276761174202, 0.055814873427152634, -0.004444308578968048, -0.03964466229081154, -0.005315751768648624, 0.05195118859410286, 0.05065...
2017-02-07
Senate
1aece08b-7d05-597c-aeb1-fea714558527
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
null
nomic-embed-text
ollama
768
[ 0.013971182517707348, -0.03334727883338928, -0.16018478572368622, -0.021197648718953133, 0.005701390560716391, -0.023837292566895485, -0.05923347547650337, 0.03674431890249252, -0.03817172721028328, 0.02129911445081234, -0.01647980511188507, -0.010784943588078022, 0.07591759413480759, -0.0...
2017-02-07
Senate
d808aef7-d4b1-52d5-889a-faa73e3e6f9d
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
172a14ee-401e-5474-95b4-ff96ddee01cf
nomic-embed-text
ollama
768
[ 0.011260556988418102, 0.0626445785164833, -0.16767175495624542, -0.029419131577014923, -0.03502495959401131, -0.05935915932059288, 0.01725430227816105, -0.0019661523401737213, -0.046929843723773956, 0.005823984742164612, -0.01671607419848442, 0.02626967802643776, 0.09698828309774399, 0.020...
2017-02-07
Senate
f5043643-a5a9-5b50-8860-42160101d297
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
172a14ee-401e-5474-95b4-ff96ddee01cf
nomic-embed-text
ollama
768
[ 0.03083372674882412, 0.03155917674303055, -0.15235932171344757, -0.06692247092723846, -0.000940835801884532, -0.024034086614847183, -0.044851791113615036, 0.022769175469875336, -0.0006523835472762585, 0.0035033980384469032, -0.025363918393850327, -0.0102450056001544, 0.03186418116092682, -...
2017-02-07
Senate
e736f3cb-d783-5849-b04b-846d5cd54b0a
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
172a14ee-401e-5474-95b4-ff96ddee01cf
nomic-embed-text
ollama
768
[ -0.011412456631660461, 0.013944318518042564, -0.18647730350494385, -0.06374835222959518, 0.025024214759469032, -0.015412159264087677, -0.04986819252371788, 0.051610492169857025, -0.01793898083269596, -0.008912244811654091, -0.02926088683307171, -0.050061244517564774, 0.037145309150218964, ...
2017-02-07
Senate
09a55020-5d21-5ea3-8e7c-3f7395ea4a55
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
null
nomic-embed-text
ollama
768
[ 0.048246465623378754, 0.04497421905398369, -0.16455896198749542, -0.08314640074968338, 0.0891052708029747, -0.03501032292842865, -0.002057091100141406, 0.026261096820235252, -0.0382116436958313, 0.033888839185237885, 0.006795143708586693, 0.0037160441279411316, 0.03897907957434654, 0.05276...
2017-02-07
Senate
452e8ce9-cdd5-5d3f-87b9-746e3a612191
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
c271546e-e4ce-5d5b-ac71-092928f3d2f3
nomic-embed-text
ollama
768
[ -0.009758463129401207, 0.06220206245779991, -0.17587941884994507, -0.031071936711668968, 0.020180027931928635, 0.023353181779384613, -0.032475411891937256, -0.02872493490576744, -0.022701825946569443, 0.024661915376782417, 0.021653328090906143, 0.029752124100923538, 0.003670694073662162, 0...
2017-02-07
Senate
2772db28-3198-58fc-9d0e-f6b9c832ef15
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
c271546e-e4ce-5d5b-ac71-092928f3d2f3
nomic-embed-text
ollama
768
[ -0.027370110154151917, 0.04805511608719826, -0.16627174615859985, -0.0704607293009758, 0.008723843842744827, -0.0239761583507061, -0.016652598977088928, 0.015225572511553764, -0.005011788569390774, 0.01929643750190735, -0.005350773688405752, -0.0026255440898239613, 0.008157216012477875, 0....
2017-02-07
Senate
1dd3a7e7-d16c-5fe0-bafd-389e850d6855
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
c271546e-e4ce-5d5b-ac71-092928f3d2f3
nomic-embed-text
ollama
768
[ -0.0040395669639110565, 0.014968056231737137, -0.20180583000183105, -0.11474691331386566, 0.08499420434236526, 0.031227299943566322, -0.017272675409913063, -0.0014974568039178848, -0.02140495553612709, -0.015618156641721725, 0.09987577795982361, 0.043941326439380646, 0.030272668227553368, ...
2017-02-07
Senate
18f9b237-6f68-5f62-86b1-fbea6f3d887d
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
c271546e-e4ce-5d5b-ac71-092928f3d2f3
nomic-embed-text
ollama
768
[ 0.0003905881894752383, 0.017243819311261177, -0.1529722660779953, -0.04066214710474014, 0.040337275713682175, 0.003265299368649721, -0.033593468368053436, -0.011884563602507114, 0.013274278491735458, 0.008057557977735996, -0.013118372298777103, 0.026399077847599983, 0.0005994317471049726, ...
2017-02-07
Senate
9f511af7-4982-577f-947c-f5a302e3fad3
d5173e8c-467a-5299-a7a4-dd0393b4db16
null
c271546e-e4ce-5d5b-ac71-092928f3d2f3
nomic-embed-text
ollama
768
[ 0.05903197452425957, 0.005565222352743149, -0.15442021191120148, -0.07477430999279022, 0.0534139908850193, 0.007987339049577713, -0.00860008504241705, 0.027645893394947052, 0.04104330763220787, -0.018471749499440193, 0.004736894275993109, -0.0036565023474395275, 0.0487704798579216, 0.02458...
2017-02-07
Senate
End of preview. Expand in Data Studio

Hansard Embeddings & Derived Analytics

Text embeddings and derived analytics cubes covering the parliamentary Hansard of four Australian jurisdictions: the Commonwealth (au), New South Wales (nsw), South Australia (sa), and Western Australia (wa).

No Hansard prose is in this dataset. It ships vectors, join keys, and derived metadata (subject headings, member names, parties, counts). The official record remains with each parliament; to hydrate the text, run the open-source harvester against the official sources yourself — hansard-researcher.

Over the last 20 years, some Parliaments have published their Hansard in a specific Hansard XML format. The complication at the moment is that you have to go to each Parliament to access their records. This dataset is derived from those XML sources, but the pipeline is designed to be agnostic to the source format. The harvester extracts the prose and metadata, the normalizer converts it into a common schema, and the enrichment step produces embeddings and derived analytics cubes. The cubes are designed to support research and analysis without ever needing to ship the prose itself.

What's in the repo

embeddings/   one vector per text unit, hive-partitioned:
              model_slug=<slug>/jurisdiction=<j>/year=<yyyy>/part-*.parquet
gold/         derived analytics cubes (*.parquet), the join target for
              subject_id / member ids
qdrant/       (optional) Qdrant collection snapshot — restore and search
              without re-indexing

Vector-space contract

Query vectors are only comparable if produced identically:

Model nomic-embed-text (137M) served via Ollama
Dimensions 768
Distance cosine
Task prefix none — embed queries with no search_query: prefix

The model_slug hive partition versions the vector space. If the corpus is ever re-embedded with a different model or serving stack, the new vectors publish alongside under a new model_slug — different implementations are not the same vector space, so never mix partitions in one index.

embeddings/ schema

One row per embedded text unit (e.g. "a contiguous spoken passage within a subject").

column type notes
text_id VARCHAR (UUID) primary key of the text unit
fragment_id VARCHAR (UUID) the silver fragment the text came from
talker_id VARCHAR (UUID) speaker turn; joins gold/qa_pairs.question_talker_id / .answer_talker_id. ~84% populated — NULL is structural (procedural/chair text carries no speaker attribution)
subject_id VARCHAR (UUID) debate subject; joins the subject-grain gold cubes. ~99% populated — NULL is procedural preamble before the first subject
model VARCHAR raw model id (nomic-embed-text)
provider VARCHAR serving stack that produced the vector (ollama)
dim INTEGER 768
embedding FLOAT[] the vector
date DATE sitting date
house VARCHAR chamber (or committee volume)
jurisdiction VARCHAR au / nsw / sa / wa (also a hive partition)
model_slug VARCHAR filesystem-safe model id (also a hive partition)
year INTEGER hive partition, derived from date

Join contract

The vectors are deliberately prose-free; the gold cubes make them usable:

  • subject_idgold/subject_occurrence, gold/contributions, gold/qa_pairs, gold/division_summary, gold/division_votes_detail — subject headings, who spoke, Q&A pairings, votes.
  • talker_idgold/qa_pairs question/answer talker ids.
  • Member identity across cubes is member_source_id (per-jurisdiction official id) + member_name.
  • text_id / fragment_id → resolve to prose only via a local run of the harvester + normalizer (silver layer). Prose never ships here.

Example — label a nearest-neighbour hit without any prose:

-- duckdb
SELECT e.text_id, s.subject_name, s.date, s.house, s.jurisdiction
FROM read_parquet('hf://datasets/parliament-data/hansard-embeddings/embeddings/**/*.parquet', hive_partitioning=1) e
JOIN read_parquet('hf://datasets/parliament-data/hansard-embeddings/gold/subject_occurrence.parquet') s
  USING (subject_id)
LIMIT 10;

gold/ cubes

These are as of 2026-07-07

cube rows grain
contributions 629,054 member × subject × house-day: turns/speeches/questions/answers/interjections/words
subject_occurrence 353,285 subject × house-day: participation counts, first-spoken time, linked bills
qa_pairs 135,677 paired question & answer with members, parties, portfolios, word counts
division_votes_detail 891,335 individual member vote in each division
division_summary 14,055 division outcomes with ayes/noes/margin
bills 7,339 bill: houses, sitting span, latest stage, debate volume
bill_journey 31,484 bill × house-day: stages reached, debate/divisions that day
bill_theme_link 36,888 bill × theme association
member_activity 1,255 member career totals
member_activity_by_week 98,417 member × ISO week activity
member_theme_rank 25,788 member ranking within each theme
member_vote_by_theme 19,042 member vote tallies by theme
theme_by_week 42,970 theme prevalence per week
theme_cooccurrence 1,288 theme pair co-occurrence
theme_share_by_jurisdiction 104 theme share per jurisdiction
theme_subject_names 1,040 top subject names per theme
theme_coverage 4 classification coverage per jurisdiction
theme_candidates 0 low-confidence classifications flagged for curation (empty when the classifier places everything above the cutoff)
sitting_days 5,243 house-day: session, times, duration, volume
pipeline_coverage 5,243 per house-day provenance: harvested/normalized/embedded/themed

Theme cubes carry engine/model columns — theme labels are themselves model-derived; treat them as annotations, not ground truth.

Every cube is self-describing — read the column list straight off the parquet:

-- duckdb
DESCRIBE SELECT * FROM read_parquet(
  'hf://datasets/parliament-data/hansard-embeddings/gold/contributions.parquet');

Optional extra: Qdrant snapshot

Everything above is fully usable without this — the parquet is the dataset. For anyone who wants batteries-included semantic search, qdrant/ holds a point-in-time collection snapshot: restore it into a Qdrant instance and query — no re-indexing of 6.3M points. (~25 GB; re-cut occasionally, so it may trail the parquet shards between cuts.) Point payloads carry jurisdiction, date, house, subject_id, talker_id, plus citation metadata so search results cite the official record without any prose: subject/debate context (subject_name, subject_uid, proceeding_name, subproceeding_name, committee_name, bill_names, extract_index), speaker (speaker, party, party_abbreviation, electorate, role, talker_kind), citation position (text_kind, page_no, time_anchor — ISO-8601 UTC), sitting formalities (parliament_num, session_num, review_stage) and provenance (source_url). Nulls are dropped per point, not stored; speaker fields are structurally absent on procedural/chair text.

curl -X POST 'http://localhost:6333/collections/<name>/snapshots/upload' \
  -H 'Content-Type: multipart/form-data' \
  -F 'snapshot=@hansard-embeddings.snapshot'

Provenance & licensing

  • Derived from the official Hansard published by each parliament. The parliamentary record itself remains subject to each parliament's terms:

    Jurisdiction Official source Terms on the record
    Australia (Federal) parlinfo.aph.gov.au CC BY-NC-ND 4.0
    New South Wales parliament.nsw.gov.au/hansard (API: api.parliament.nsw.gov.au) Parliamentary copyright
    South Australia hansardsearch.parliament.sa.gov.au Parliamentary copyright
    Western Australia parliament.wa.gov.au/hansard (public API) CC BY-ND 4.0

    Those terms bind the prose, which is why none ships here; the full per-jurisdiction analysis is in the pipeline repo's LICENSES-DATA.md.

  • Vectors and derived cubes in this dataset: CC-BY-4.0

  • Pipeline: harvest → normalize → enrich (embed/themes) → aggregate, all open source at parliament-io/hansard-researcher. gold/pipeline_coverage records per-house-day provenance including harvested_at timestamps.

  • Updated weekly by an incremental upload from the maintainer's pipeline; the current year's shards churn, historical shards are stable.

Citation

@misc{novaworks2026hansard,
  author    = {{NovaWorks Group Pty Ltd}},
  title     = {Parliamentary Hansard --- Embeddings \& Derived Analytics},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/parliament-data/hansard-embeddings},
  note      = {Project: \url{https://parliament.io}. Updated continuously; cite the access date.}
}
Downloads last month
10