tc-ai-experiments

Findings and history

Results so far, how we got here, and open ideas. Numbers are from the run on 2026-10-07 with all five models; embeddings vary slightly between API calls, so expect small drift on rerun.

How the project grew

  1. A small embedding-based search script embedded the 68 biographies with text-embedding-3-small and printed nearest neighbours.
  2. Added a t-SNE scatter plot. Found that @thi.ng/tsne does not reduce dimensions (see CLAUDE.md), so tsne2d restarts the layout in 2D.
  3. The user asked why Marie Curie sits far from Einstein on the map. Analysis (below) led to comparing models.
  4. Added text-embedding-3-large, then Qwen, Mistral and Gemini. Five stacked maps were hard to compare, so the page became four views: agreement heatmap, field/gender scores, a “who changes most” ranking with a per-person comparison, and a single map with a model switcher.
  5. Moved into its own project.
  6. Added a perplexity switcher to the map (results under Marie Curie below).
  7. Every heatmap cell had the same colour: all pairs share 1.9–2.3 of 3 neighbours, which fell into one step of a 0–3 scale. The colour scale now spans the observed range instead, and cells show two decimals so cells with the same rounded value don’t get different shades.
  8. Added a “What we found” card (findings computed from the data, interpretations marked as untested) and a “Limits” card to the page, for presenting to the class.
  9. Asked whether a 3D map would help. Measured it first, then built a separate experiment page (npm run map3d, output/map-3d.html). Results under “2D or 3D maps” below.
  10. The user pointed out that the Curie–Einstein gap on the map is mostly a dimensionality-reduction effect: the numbers say they’re close, the 2D picture says far. Checked it against the data. The squeeze into 2D is part of it, but her weak, flat similarities explain why the map and the list disagree (under Marie Curie below). Added this as a finding on the page and a note on the map card: map distances are approximate, so trust the list for a pair.

Method choices

Results (five models)

Agreement (shared neighbours of 3), from 1.9 to 2.3. The two OpenAI models are most alike (2.28); Qwen is least like the others (1.9–2.0).

Model Dimensions Same field Same gender
chance   13% 59%
text-embedding-3-small 1536 60% 88%
text-embedding-3-large 3072 63% 84%
qwen3-embedding-8b 4096 56% 90%
mistral-embed-2312 1024 63% 83%
gemini-embedding-2 3072 55% 82%

Every model groups people by gender far above chance, as well as by field. The likely cause is the text: many women’s biographies are framed around being “the first woman to…”.

People the models disagree on most: Marie Curie (33%), William Shakespeare (40%), Catherine the Great, Fyodor Dostoevsky, Napoleon Bonaparte (43% each). Only 3 people have identical neighbours in every model.

Marie Curie

Shakespeare

The OpenAI models and Gemini group him mostly with writers (Dante, Cervantes). Qwen pairs him with Bach, Leonardo and Newton, closer to “famous genius” than “writer”. Mistral mixes the two.

2D or 3D maps

Measure: the share of each person’s 3 true closest people (cosine similarity on the full embeddings) who are also among their 3 nearest points on the t-SNE map, averaged over everyone. Placing people at random would keep about 4%.

Model 2D p10 3D p10 2D p30 3D p30
text-embedding-3-small 70% 69% 66% 73%
text-embedding-3-large 65% 68% 62% 71%
qwen3-embedding-8b 68% 68% 58% 65%
mistral-embed-2312 68% 70% 62% 67%
gemini-embedding-2 64% 65% 63% 68%

Search test on music data

A side test on 2026-10-08, outside this project’s code and on different data: 51 music artists (MusicBrainz), each embedded as a text built from name, area, tags, aliases and release titles, stored in Chroma. 12 search questions were scored on the top 5 results (recall when a question has ≤ 5 right answers, precision otherwise). Gemini wasn’t included.

Mean score 3-small 3-large Qwen Mistral
6 meaning-only questions (“Afrobeat”, “K-pop groups”) 1.00 1.00 0.85 1.00
6 questions on fields or numbers (“born before 1945”), search only 0.70 0.86 0.76 0.76
the same 6, with a metadata filter 1.00 1.00 1.00 1.00

Limits

Also shown on the page.

Open ideas