Introduction to Machine Learning for SEO
- Comparative Analysis of NLP APIs versus generative AI on entity extraction
- The difference between AI and ML
- Practical: Text Classification of page content with Google Natural Language API
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
Generative AI & LLMs
In shortAI models that create new content (text, images, audio, code) by predicting likely outputs from patterns learned in their training data.
Generative AI is the family of machine learning models that produce new content, such as text, images, audio, video or code, in response to a prompt. Chatbots like ChatGPT, Gemini and Claude are the best-known examples, built on large language models. Like any other machine learning model, a generative model is making predictions: it predicts the most plausible response based on the data it was trained on.
A generative model is first trained on a very large collection of examples (for text models, a large share of the public web, books and code) so it learns statistical patterns in that data. Most text models today use the Transformer architecture. When you send a prompt, the model generates its answer one token at a time, each time choosing a likely next token given everything before it. Image and audio models follow the same idea with different data and architectures.
Generative AI sits inside deep learning, which sits inside machine learning and the wider field of artificial intelligence. MLforSEO’s framing is that it is a small, very visible subset of AI: it gets most of the attention on social media, yet most production ML in search and marketing is classification, clustering, extraction and ranking.
MLforSEO compared purpose-built NLP APIs with generative AI chatbots on the same entity extraction task, using one simple zero-shot prompt. Google Cloud’s Natural Language API returned the most unique entities (59, recounted). DeepSeek R1 led the generative group with 37, Gemini returned nothing because it read the text as a question about a person, and a chatbot gave a different answer when the same prompt was run again. Only the APIs returned confidence, salience or knowledge-base links. The conclusion: generative AI is excellent at content transformation and the wrong instrument for repeatable, structured text analysis.