liveBook · Manning

Chapter 4: When to use (and not to use) AI

What you will learn in chapter 4 of The AI Pocket Book

The chapter introduction previews seven questions for deciding when to build an AI product, use conversational AI at work, or build an LLM wrapper.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction previews seven questions for deciding when to build an AI product, use conversational AI at work, or build an LLM wrapper.

4.1 Building an AI-based product

The section argues that deciding whether to use AI in a product should start with a business question, not just technical ones.

Key terms: business case, AI-based product

4.2 Am I putting AI before the customer?

The section argues that commercial AI products should start with genuine customer needs, not with a desire to use AI.

Key terms: AI-first approach, Just Walk Out, customer needs, customer-centric approach, minimal product, prototype, mock-up, product validation

4.3 Are hallucinations okay?

This section explains how to decide whether an AI product can tolerate hallucinations and how changing the task’s role may make them more acceptable.

Key terms: hallucinations, hotel reviews, reformulate the task, automatically correct contracts, double-check the contract

4.4 Do I need to explain how the output is generated?

This section explains how a client’s need to understand predictions should influence the choice of AI model or approach.

Key terms: predictive performance, black box, explainability, linear, predictive model, analytical or statistical study, explainable AI, XAI, SHAP

4.5 Using conversational AI as an assistant

The section defines conversational AI as an assistant you give tasks to through natural-language prompts, setting up later questions about when to use it.

Key terms: conversational AI, natural-language prompt

4.6 Can I describe the task succinctly and validate the output easily?

This section offers two questions for deciding whether conversational AI will save time on a task: can you describe it briefly, and can you check the result easily?

Key terms: good bang for your prompt, describe the task succinctly, step-by-step prompt, validate the output, hallucinates

4.7 Has anyone done it before?

The section argues that, before asking an AI assistant to write code for a common task, developers should check whether a proven library already does the job.

Key terms: AI assistant, libraries and frameworks, Material UI, reinventing the wheel, sun position, documentation, hallucinated

4.8 What does an excellent job look like?

The section explains why deciding whether to use AI requires understanding what excellent work involves and how much quality the task actually needs.

Key terms: competently, pacing, organization, logo design, competitors’ logos, distinctive look

4.9 Building LLM wrappers

The section explains how an LLM wrapper delegates a product’s core task to an LLM and cautions that this approach is not always the best choice.

Key terms: LLM wrappers, natural-language prompt

4.10 Will users interact with my product using natural language?

This section explains how to decide whether an LLM belongs in a product by checking whether users interact through natural language, using a travel-planning app to show when conventional software works better.

Key terms: natural language, LLM wrapper, hallucinations, unstructured outputs, Google Places API, pathfinding algorithm, structured information, sightseeing itinerary

4.11 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 3: Selecting and evaluating AI tools Chapter 5: How AI will affect jobs and how to stay ahead →

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.