liveBook · Manning

Chapter 14: Offline LLMs and their benefits

What you will learn in chapter 14 of Build Applications with Local AI Models on a Mac

The introduction establishes that the Ollama-based chatbot works at full capability without internet access and previews the chapter’s examination of why that matters.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction establishes that the Ollama-based chatbot works at full capability without internet access and previews the chapter’s examination of why that matters.

Key terms: Ollama-based chatbot, airplane mode, full capability

14.1 Verifying offline chatbot operation: The airplane mode test

This section shows how to verify that a downloaded local chatbot works without internet access.

Key terms: airplane mode test, network connectivity, offline, ollama pull, model file, local

14.2 AI privacy and security analysis

Contrasts where conversations are processed in cloud AI and local AI, establishing the basic privacy difference.

Key terms: cloud AI, local AI, remote server

14.2.1 Cloud AI data flow

14.2.2 Local AI data flow

This subsection contrasts the short, on-device path of a local AI exchange with the external journey and possible exposure of cloud AI data.

Key terms: local AI, cloud AI, local model

14.2.3 Why privacy matters: Concrete scenarios

This section explains why sending sensitive prompts to cloud AI raises privacy concerns, using personal, business, legal, medical, and student-data scenarios.

Key terms: cloud AI, local AI, personally identifiable information (PII), personal conversations, confidential business information, attorney-client privilege, protected health information (PHI), student data

14.3 AI cost analysis

14.3.1 Cloud AI costs

This subsection contrasts cloud-AI subscription and API pricing and explains why cost estimates need current, usage-specific prices.

Key terms: consumer plans, monthly subscriptions, APIs, input and output token volumes, service tier

14.3.2 Local AI costs

This section explains why local AI can have low software and running costs while still requiring hardware and maintenance, especially when comparing costs for a team.

Key terms: Ollama, open-weight models, direct software costs, overall cost, small models (2B–3B), medium models (7B–9B), 16 GB RAM, initial model downloads, break-even point, subscription mix

14.3.3 The hidden cost: Dependency

This section contrasts cloud AI’s dependence on a provider with the continuing access offered by a locally stored model.

Key terms: dependency, cloud AI, local AI, model file

14.3.4 When cloud AI is worth the cost

The section explains when cloud AI justifies its cost and recommends using it alongside local AI rather than treating either as the only option.

Key terms: cloud AI, proprietary models, web search integration, image generation, document analysis, hybrid, local AI, cost-sensitive applications

14.3.5 The long-term perspective on costs

Explains why cloud-versus-local AI cost comparisons should be revisited as models, prices, hardware, and usage change.

Key terms: open-weight models, ollama pull, cloud and local AI costs

14.4 Use cases where local AI excels

14.4.1 Healthcare

Explains why local LLMs can be useful in healthcare while emphasizing that local deployment does not automatically satisfy privacy laws.

Key terms: protected health information (PHI), local LLM, HIPAA, APPI, GDPR, controlled environment

14.4.2 Legal practice

This subsection explains why local AI can help lawyers use LLMs without sending confidential client information to a cloud service.

Key terms: attorney-client privilege, cloud AI upload policies, professional obligations, local AI, client’s data

14.4.3 Education

This section explains why local AI is useful for teachers working with student-specific information.

Key terms: student data privacy, FERPA, local AI, student educational records

14.4.4 Creative work

This subsection explains why local AI can appeal to creators who want to keep their work private.

Key terms: cloud AI service, local AI, creative process, training pipeline

14.4.5 Journalism and research

This section explains why local AI is useful for confidential journalism and sensitive research.

Key terms: cloud AI, local AI, sensitive sources, leaked documents, proprietary research, classified projects

14.4.6 Personal finance and mental health

This subsection uses personal finance and emotional conversations to show why keeping sensitive AI chats on a local device matters.

Key terms: personal finances, sounding board, local AI

14.4.7 Enterprise and corporate use

This subsection explains why enterprises use local LLMs to give teams AI access without sending sensitive business information to a cloud service.

Key terms: trade secrets, financial projections, strategic plans, competitive analysis, cloud AI service, local LLMs

14.4.8 Offline and remote environments

This subsection explains why a downloaded local model remains useful where internet access is unavailable.

Key terms: cloud AI, Ollama, downloaded model

14.4.9 Use case decision framework

14.5 Exercises

14.6 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 13: System prompts and parameter tuning Chapter 15: Common errors and troubleshooting →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.