Don't classify. Hallucinate!

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

It gives practitioners a working recipe for tagging content when the category vocabulary is too large to fit in a prompt.

Read this as

Simon Willison highlights a blog post by Doug Turnbull describing how to label content with AI when there are too many categories to choose from. Willison's own blog has 1,856 tags, too many to show an AI model in one prompt. Instead of picking from the list, the model invents plausible tags, and a search technique called vector embeddings matches those invented tags to the closest real ones. The trick is reusable wherever a fixed category list is unwieldy.

Doug Turnbull's technique solves a real cost problem: classification prompts that enumerate thousands of categories are expensive and unreliable. Instead, the model hallucinates a category following example formatting rules, then vector embeddings match it to the existing vocabulary. Teams with large taxonomies, product catalogs, content libraries, gain a cheaper tagging method. No pricing or benchmark figures are given.

Turnbull proposes open-vocabulary classification: prompt the LLM to generate novel hierarchical tags (e.g. 'Furniture / Living Room Furniture / Coffee Tables') without exposing the full taxonomy, since Willison's 1,856 blog tags exceed prompt-feasible context. Generated tags are then embedded and nearest-neighbour matched via vector embeddings against the existing corpus. Including example tags in the prompt shapes the output format. No benchmark numbers or limitations are given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison Doug Turnbull

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

An Indic Voice Agent with CUGA

It shows that a cross-lingual voice assistant can be built with open-source tooling, but the real lesson, swap in a multilingual embedding model, matters to anyone doing non-English retrieval.