This is a continuation of my series from the “AI-Enhanced App” talk I gave at Swift Bharat. Previous posts:
✨ Just Add AI ✨
Classification is one of the foundational concepts in Machine Learning. Cats / dogs or hotdog / not hotdog. Traditionally, classification models were trained to recognize a predefined set of categories.
But with LLMs and the new vision models, we are no longer constrained to predefining all our categories upfront. LLMs can create on-demand custom categories for anything!!!!! This is truly AMAZING!!!
So amazing in fact, that this can create brand new categories of apps! This is a series of blog posts about how we can use AI in our apps, so there are two possibilities here:
Backend Data Classification
If you have a finite set of large data, you can now classify it in novel ways that wasn’t possible before. For example, my app Sanskrit Lexicon, a Sanskrit-English Dictionary, comes with a pre-set list of words and definitions. Each word can have many definitions across several dictionaries, many of them outright duplicates or very similar.
Before this, all other websites separated the definitions by dictionary that they come from. But by using Gemini, I was able to classify all the words by meaningful categories instead. Nobody has ever done this before!!! In fact, this became the defining feature of my new app.
So don’t sleep on classifications. It’s not your original ML grandparent’s classification anymore!!! By adding classifications, you can really add something super original and new to your app that no other app has!
On-Demand Classification
If you have changing data on the backend that is pushed to all apps (e.g. a news website), you can also generate classifications on-demand when you save the new data row.
However, the cool part here is that you can also do super personal classification for each user’s on-device information only. Check out Cloudflare’s new Clairic model. It is fast and cheap.
I personally haven’t used it yet, but one use-case I’m thinking about is a Todo app. Imagine on-demand todo categories (or tags) that are different for each user’s list, stored in their own SwiftData or iCloud. So someone using the todo app to run a shop will have completely different but relevant categories compared to someone who uses it to plan a birthday party.
Clairic is a new model at this price-point, so we haven’t even scratched the surface of creative use-cases for this. This can really enhance an app in a big and unique way.
Conclusion
I’m personally already building a small word game that uses categorization as a core part of it. And I’ve never even built a game before! So using LLMs or visual models for categorization can really open up full new app categories and experiences that haven’t been possible before.
Be creative here!!! The best apps of the future haven’t been created yet!

