Don't classify, hallucinate! A clever LLM tagging trick using embeddings

Simon Willison · rss · 2026-08-15

Simon Willison shares Doug Turnbull's neat solution: let the LLM generate tags without seeing the existing vocabulary, then use vector embeddings to match them to the closest real tags. This solves the problem of too many tags to feed to an LLM at once.

Original post →

More from Research

Research channel →