TechEarl
Topic · AI

Artificial Intelligence (AI)

Building with Claude, GPT, Gemini, Llama and open models: prompt patterns, RAG, agents, evals, and the engineering reality behind every LLM headline.

21 articlesWritten by Ishan Karunaratne
Artificial intelligence (AI) engineering guides on LLM APIs, prompt patterns, RAG, evals, and shipping AI features.
The Agentic Browsing audit is live in PageSpeed Insights. Paste your URL to get a score, then pass the accessibility tree, CLS, and llms.txt checks. Full rule-by-rule guide.
FeaturedAI

How to Pass the PageSpeed Agentic Browsing Audit

The Agentic Browsing audit is now live in Google PageSpeed Insights, no Chrome Canary needed. Paste your URL, read the fractional score, and pass every check that says whether AI agents can read and act on your site.

More in AI
Agency-ops playbook for AI: proposals, SOWs, onboarding, SOPs, meeting summaries, status reports, internal docs. Where per-hour gain is highest.

AI for WordPress Agency Operations: The Playbook

The agency-ops playbook for AI: proposals, SOWs, onboarding documents, SOP creation, meeting summaries, status reports, internal documentation. Where the per-hour gain is highest, and the rules that keep client trust intact.

Developer-role playbook for AI on WordPress: ACF scaffolding, debugging, WP-CLI orchestration, code review, migrations, Figma to component, senior review.

AI for WordPress Developers: The Playbook

The developer-role playbook for AI on WordPress projects: ACF scaffolding, plugin/theme debugging, WP-CLI orchestration, code review, migration scripts, Figma-to-component, and the senior-review discipline that keeps quality high.

Sysadmin-role playbook for AI on WordPress infrastructure: log triage, deploy verification, config audits, backups, security, fail2ban, read-only discipline.

AI for WordPress Sysadmins: The Playbook

The sysadmin-role playbook for AI on WordPress infrastructure: log triage, deploy verification, config audits, backup checks, security sweeps, fail2ban rule generation, and the strict read-only discipline that keeps production safe.

Figma to ACF Flexible Content pipeline with AI: describe the design, hand over JSON or screenshots, get ACF registration plus template partials. The realistic flow.

Turning Figma Designs Into WordPress Components Using AI

The Figma to ACF Flexible Content pipeline used to be the slow part of every agency build. With AI in the loop, you describe the design intent, hand over the Figma JSON or screenshots, and get back working ACF registration plus template partials. Here is the realistic workflow.

What WordPress agencies should adopt first, what to skip, budget realities, and the four operational shifts that turn AI from a curiosity into load-bearing.

How Small WordPress Agencies Can Use AI in 2026

AI for a WordPress agency in 2026: what to actually adopt first, what to skip, the budget realities, and the four operational shifts that turn AI tooling from a curiosity into a load-bearing part of the business.

Use Claude CLI to run WordPress and ACF work end-to-end. Field group generation, WP-CLI orchestration, log triage, debugging. Real prompts, real output, real limits.

Using Claude CLI to Manage WordPress Sites

How I use Claude CLI to run WordPress and ACF work end-to-end: ACF field group generation, WP-CLI orchestration, log triage, plugin debugging, bulk content ops. Concrete prompts, what it gets wrong, and where it fits in an agency workflow.

Add semantic search to an existing MySQL app with MySQL 9's VECTOR type and embeddings from Voyage or OpenAI. Store, query, and rank without a separate vector DB.

How to Add Semantic Search to a MySQL App

Add semantic search to an existing MySQL app with MySQL 9's VECTOR type, an embedding model (Voyage, OpenAI), and application-side cosine ranking. No separate vector database needed.

Build an LLM agent with tool use. The agentic loop, tool-call formats on Anthropic / OpenAI / Gemini, JavaScript and Python code, common failure modes.

How to Build an LLM Agent with Tool Use

Build an LLM agent with tool use: the agentic loop, the tool-call format on Anthropic, OpenAI, and Gemini, runnable code in JavaScript and Python, plus the common failure modes.

Pick the right Claude tier: Haiku for cheap volume, Sonnet 5 for the default, Opus 5 for hard agentic work, Fable 5 for the top end. Effort levels, cost math, latency, decision matrix.

How to Choose Between Claude Haiku, Sonnet, and Opus

Pick the right Claude tier for the job: Haiku for high-volume cheap, Sonnet 5 for the default, Opus 5 for hard agentic work, Fable 5 for the top end. With effort levels, cost math, latency, and a decision matrix.

Get reliable JSON from an LLM with structured-output modes on Anthropic, OpenAI, Gemini. Plus Zod/Pydantic validation, retry strategies, and common pitfalls.

How to Get Reliable JSON from an LLM

Get reliable JSON out of an LLM with native structured-output modes (Anthropic tool use, OpenAI Structured Outputs, Gemini schema), plus Zod / Pydantic validation as a fallback.

Run a local LLM with Ollama: install, pull a model, hardware floor, picking between Llama, Mistral, Qwen. When local beats cloud and when it doesn't.

How to Run a Local LLM with Ollama

Run a local LLM with Ollama: install, pull a model, the hardware floor, picking between Llama, Mistral, and Qwen, and when local is faster than cloud (and when it isn't).

Six techniques that actually reduce LLM hallucination: grounding, citations, tool use, structured outputs, explicit don't-know, and LLM-as-judge verification.

How to Stop an LLM from Hallucinating

Six techniques that actually reduce LLM hallucination: grounding with retrieved context, citation requirements, tool use for facts, structured outputs, explicit don't-know permission, and LLM-as-judge verification.

Write LLM evals that catch regressions. Pick metrics (exact match, LLM-as-judge, embedding similarity), build a golden dataset, run on every PR, monitor trends.

How to Write LLM Evals That Catch Regressions

Write LLM evals that catch real regressions: pick the right metrics (exact match, LLM-as-judge, embedding similarity), build a golden dataset, run on every PR, and watch the trend over time.