Skip to content
AI ConnectPowered by VELENTIS
AI-generated2 min

New LLM Pattern: Doug Turnbull and Simon Willison Advocate Hallucination Over Rigid Classification

Developers establish a new design pattern for language models. Synthetic tags replace rigid taxonomies, supported by tool updates for Gemini and SQLite.

This article was AI-generated and published automatically. Context, labelling and all sources at the end of the article.

(KI-generiertes Symbolbild: Gemini / AI Connect)

An unconventional technique for handling classification tasks with large language models is gaining traction across the developer community. Under the design principle 'Don't classify. Hallucinate!', software developers Doug Turnbull and Simon Willison outline an alternative architectural pattern for processing large-scale taxonomies. Instead of forcing a language model to fit unstructured text directly into rigid lists containing hundreds or thousands of categories, the approach relies on controlled generation. The model is allowed to freely hallucinate descriptive, synthetic tags.

Traditional attempts to prompt large language models directly into massive category systems frequently hit practical limits. When presented with extensive taxonomies, classification accuracy drops significantly because context windows become crowded and subtle semantic distinctions get lost. Turnbull and Willison suggest splitting this complex pipeline into two distinct phases. The model first analyzes the text without restrictive constraints and outputs plausible descriptors that capture the core subject matter.

In the second stage, these synthetic keywords are mapped against the target taxonomy using mathematical vector embeddings. A nearest-neighbor similarity search in the embedding space matches the generated descriptors to standardized database categories. This method leverages the natural strength of generative models, which lies in grasping nuances in human language. At the same time, it sidesteps the rigidity and prompt degradation associated with long multi-class selection lists.

Alongside these architectural discussions, Simon Willison published updates to his open-source developer toolchain. On August 13 and 14, he released version 0.33 of llm-gemini, expanding his command-line ecosystem. The update introduces direct support for newer Google models, including Gemini 3.7 Flash, 3.6 Flash and 3.5 Flash-Lite. It also brings support for dedicated embedding models that are critical for running downstream vector-mapping workflows.

In tandem, the database utility sqlite-utils was updated to version 4.2.1. The maintenance release resolves an import issue and expands table transformation and schema inspection capabilities via table.transform(). When used together, these lightweight utilities allow engineers to build modular, local classification pipelines without requiring complex enterprise infrastructure.

The convergence of novel prompting patterns and flexible developer tools illustrates an ongoing evolution in practical artificial intelligence engineering. Rather than burdening models with rigid constraints, modern architectures increasingly rely on hybrid systems that merge generative synthesis with deterministic vector retrieval. For document indexing and internal knowledge bases, this method offers a reliable blueprint to reduce implementation overhead.

What this means for you

For software engineers and data teams, this two-step architecture resolves common accuracy issues in direct prompt classification. Decoupling semantic tag generation from vector-based taxonomy matching delivers more resilient and cost-effective data pipelines.

Perspectives

Coverage: 2× Other

One story, several angles: how each source frames the topic, each with a verbatim quote.

  • simonwillison.netOther

    Simon Willison highlights Doug Turnbull's method as a practical solution for tagging blog posts by letting the model freely invent tags and subsequently matching them using vector embeddings.

    Original quote

    Doug Turnbull has a neat solution.

    simonwillison.net
  • softwaredoug.comOther

    Doug Turnbull presents the concept as a useful pattern for scalable classification where language models first generate plausible fake entities before resolving them to real ones.

    Original quote

    A useful pattern for LLM classification at scale is to let it hallucinate plausible, fake entities.

    softwaredoug.com

Source classification is maintained editorially (political spectrum only where consensus is broad; vendor communication is PR, not journalism). Unlabelled sources are unclassified: we do not guess.

Evidence

Solidly sourced
62/100
  • Doug Turnbull and Simon Willison highlighted the 'Don't classify. Hallucinate!' pattern, where LLMs generate free synthetic tags that are subsequently mapped onto taxonomies using vector embeddings.

    single source
  • Simon Willison released llm-gemini 0.33, adding support for Gemini 3.7 Flash, 3.6 Flash, 3.5 Flash-Lite and updated embedding models.

    single source
  • The sqlite-utils 4.2.1 release was published on August 13, fixing an import bug and enhancing table.transform() schema capabilities.

    single source

The evidence score is computed, not hand-set: from confidence, the number of sources and the share of verified statements.

Source & transparency

As of: August 15, 2026

AI-generatedAI-generated: produced automatically from vetted sources with technical quality checks (source, quote and figure verification); no human sign-off of each item before publication

Sources
5
Verified statements
0 / 3
Evidence score
62Solidly sourced

Want to put this into practice?

We connect you with suitable AI providers from the DACH region, free of charge and without obligation.

What's next?