Building with AI models
How AI features are built, explained for the people who commission them: retrieval, the Model Context Protocol, choosing a model, evaluations, cost, speed and reliability.
- What is RAG (retrieval-augmented generation), and when should you use it?RAG explained in plain words: search your documents first, give the relevant passages to the model, and answer with citations. Where it fails and how to test it.
- RAG vs fine-tuning: when should your AI read your documents, and when should it be trained?Retrieval-augmented generation feeds your documents to a model at question time. Fine-tuning changes how the model behaves. How to choose between them.
- What is the Model Context Protocol (MCP), and why does it matter for business?The Model Context Protocol is an open standard that lets AI assistants connect to tools and data sources. How it works and what to check before using it.
- How do you build an MCP server for your own business system?What building an MCP server for your own system involves: choosing actions, read versus write tools, authentication, testing and hosting. A plain guide.
- What are AI embeddings, and what are they used for in business?AI embeddings turn text into lists of numbers that capture meaning. Where they are used in business search, de-duplication and routing, and their limits.
- What is a vector database, and do you need one?A vector database stores content as numbers so software can find items by meaning. Learn when a database with pgvector is enough, and what to check first.
- How do you choose a language model for your business?How to choose a language model for a business task: test on your own examples, compare cost, speed, languages and data terms, then run a small bake-off.
- Using the Claude API for business: accounts, models and data termsHow a business sets up the Claude API: organisations and workspaces, model tiers, data use terms, rate limits and cloud access, and where to check details.
- Using the OpenAI API for business: projects, models and data termsHow a business sets up the OpenAI API: projects, scoped keys, model choice, data terms, regional options, country availability and rate limits.
- Why do language models make things up, and how can you reduce it?Why language models state false things confidently, which situations make it worse, and the checks that reduce made-up answers in business AI.
- How do you evaluate LLM output for a business AI feature?How to evaluate AI output for business: a test set, a scoring rubric, automated checks, model-graded scoring, human review and evals on every change.
- How to write prompts for business: a practical guide to prompt engineeringLearn how to write business prompts that work: role, task, context, examples, output format and testing against real cases, plus how to version them.
- How to get structured data (JSON) from a language model reliablyHow to get reliable JSON from a language model: schemas, provider structured output features, validating in code, retrying with the error and unknown fields.
- What is a context window, and why does it matter for business AI?What a context window is, why long documents still need care for cost, speed and accuracy, and when to summarise or retrieve instead of sending everything.
- How to reduce the running cost of an AI featureHow to cut the running cost of AI features: shorter prompts, smaller models for easy steps, limits on output and retries, and measuring cost per task.
- Prompt caching explained: what it saves and how to structure prompts for itWhat prompt caching stores, which prompt parts benefit, how it affects cost and speed, and how to order your prompts so the cache is reused.
- Why AI features feel slow, and how to make them feel fastHow to make AI features feel fast: streaming tokens, honest progress messages, smaller models, parallel calls, caching and background work for slow tasks.
- AI model routing: how to send each request to the right modelRoute simple requests to a fast, low-cost model and hard ones to a stronger model, with fallbacks, and set the rule from your own test results.
- Open-source vs closed LLMs: which should a mid-sized company use?Open-weight models you host yourself compared with closed models behind an API: control, data location, quality, operations and licence terms.
- Running LLMs on premises: what it takes and when it is worth itRunning AI models inside your own environment: why companies do it, the hardware and operations it needs, and the honest trade-offs involved.
- AI data residency: where your data is processed and why it mattersWhere AI processing happens, why data residency matters, how providers offer regional options, and the questions to put to a vendor.
- Fine-tuning explained: what it changes and what it cannot doWhat fine-tuning changes in an AI model, what it cannot add, the training data it needs, how to evaluate it and cheaper options to try first.
- AI chatbot on your website: grounding answers in your own pagesHow a website AI assistant grounded in your own pages works, what it should decline, how it cites sources, hands off to people and gets measured.
- How to add AI search to your website, step by stepAI search matches visitors by meaning, not only exact keywords. How it works, what to index, and how to keep prices and answers accurate.
- How OCR and AI extraction read documents, and where they failHow OCR and AI extraction read scanned documents, where handwriting, stamps and tables cause errors, and which checks catch wrong values.
- Building AI features for Chinese text: scripts, vocabulary and testingBuilding AI for Chinese text means handling Traditional and Simplified scripts, regional vocabulary, search without spaces and native speaker testing.
- How to build AI features that work in several languagesMultilingual AI needs language detection, replies in the user's language, cross-language retrieval, glossaries and separate quality tests for each language.
- How businesses can use AI image generation, and where photography still winsWhere AI image generation helps businesses, how to keep brand consistency, check licence terms for each provider, label AI images and when photos win.
- Speech-to-text in business apps: accuracy, speakers, privacy and reviewSpeech-to-text accuracy depends on audio, accents, mixed Chinese and English and jargon. Learn about speakers, timestamps, consent and transcript review.
- Text-to-speech and voice cloning: how synthetic voices work in a productText-to-speech turns text into audio, and voice cloning copies a voice with consent. How both work, what to check and the rules to follow.
- AI features in mobile apps: what runs on the phone and what runs on a serverHow AI features work in a mobile app: what runs on the server, what runs on the phone, keeping API keys safe, costs and store review notes.
- On-device AI vs cloud AI: which one should your app use?On-device AI runs on the phone, cloud AI runs on a server. Compare privacy, speed, offline use, battery and capability, and how to combine them.
- AI API rate limits and reliability: keeping your app working when the model failsAI APIs slow down and fail. Learn about rate limits, retries with backoff, timeouts, queues, fallback providers and clear messages for users.
- LLM observability: how to see what your AI features do in productionLLM observability shows what your AI features do in production: prompts, outputs, traces, cost, latency and user feedback, without storing personal data.
- AI content moderation: how to filter user comments, reviews and listingsHow AI moderates user comments, reviews, listings and chat: classification, thresholds, appeals, human review queues, slang and platform duties.
- How do you classify text with an LLM, and when is a simple model enough?Use a language model to tag, route or label text. Define the labels, test accuracy on a labelled sample, and know when a simple model is enough.
- How do you get reliable AI summaries of long documents and calls?Get reliable AI summaries of long documents, threads and calls: what to keep, citations to the source, checks for omissions and summaries for each reader.
- When is retrieval (RAG) not enough, and what should you use instead?Basic retrieval finds passages, so it struggles with totals, comparisons and multi-step lookups. Learn the options: database tools, agentic retrieval and summaries.
- How does text-to-SQL work, and how do you keep it safe?Ask your database questions in plain language. How models write SQL, read-only access, checking queries and why business definitions must come first.
- Can AI work with spreadsheet data, and when should you use code instead?Use AI with spreadsheet data where it helps: explaining, cleaning and drafting formulas. Use code for exact numbers, and know when a sheet should become an app.
Have a project in mind?
Tell us what you want to build. We reply with a plan, not a sales call.
AboutInsights: Building with AI models