liveBook · Manning

Chapter 3: Basic intelligence

What you will learn in chapter 3 of AI for Everyday IT

This introduction previews the basic AI interaction concepts—prompts, statefulness, context, tokens, limits, and account choices—and notes that people use AI through chat interfaces or APIs.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction previews the basic AI interaction concepts—prompts, statefulness, context, tokens, limits, and account choices—and notes that people use AI through chat interfaces or APIs.

Key terms: prompts, statefulness, context retention, coherence, tokens, token limits, chat interface, API calls, APIs, scripting

3.1 Defining the terms

This section introduces a small set of AI terms that the book will use throughout its later discussions.

Key terms: AI, definitions, terms, rest of the reading

3.1.1 Prompts

This section defines prompts as inputs to AI models and explains why purposeful wording is the basis of prompt engineering.

Key terms: prompt, AI model, output, prompt engineering, prompt design, specificity, tone, structure

3.1.2 Statefulness

This section explains how stateful chatbots retain conversational context, contrasts them with stateless interactions, and notes the implications for API prompt design.

Key terms: statefulness, context, follow-up questions, clarifications, corrections, stateless systems, stateless by default, API calls, OpenAI’s Assistants, context persists

3.1.3 Context retention and coherence

This section explains how chatbot context is retained within a chat, how coherence can fail as context becomes overwhelmed, and how to recover by starting a new conversation.

Key terms: context retention, statefulness, context, chat sessions, isolated context, context coherence, conversation history, context management, context window, hallucination

3.1.4 Tokens

This section defines tokens as the variable-sized text units chatbots process and introduces ways to count them.

Key terms: token, tokens, OpenAI tokenizer, token calculator, tiktoken, API package

3.2 Everything you never wanted to know about tokens

This section introduces token limits as a fixed chat-session capacity that includes both user and chatbot text, causing older context to be removed as the conversation grows.

Key terms: chat session, token limit, tokens, older tokens, context, context retention, coherence

3.2.1 Token limits

This section explains how input and output token limits constrain AI interactions, why larger limits are not alone a measure of model quality, and how context retention changes with long inputs.

Key terms: token limit, input tokens, output tokens, input token limits, output token limits, Table 3.1, truncate, context, context retention, needle in a haystack

3.2.2 Token limits and AI interactions

This section explains how token limits affect chatbot conversations and API-based AI applications, and how to manage those constraints for accuracy, continuity, and cost.

Key terms: token limits, prompt, response, context retention, coherence, recap, key information, context, one task at a time, APIs

3.3 When good bots go bad

This section explains how chatbots can be coaxed into aberrant behavior, why foundational rules and context limitations matter, and how modern systems have become more resilient.

Key terms: hijacking, foundational rules, context, context retention, coherence, extended conversations, controlled training, resilient, Microsoft Tay, public interactions

3.4 Free vs. premium accounts

This section introduces the trade-off between free and premium AI accounts and situates general-purpose chatbots within a wider freemium marketplace of specialized AI services.

Key terms: free accounts, premium accounts, paid subscription, enhanced capabilities, reliability, specialized AI services, foundation models, targeted training, freemium model, advanced capabilities

3.4.1 Why pay for chatbot access when I can use one for free?

This section compares free and premium chatbot accounts, explains when upgrading is worthwhile, and distinguishes subscriptions from separately billed API access.

Key terms: premium accounts, free accounts, usage limits, prompt limits, longer conversations, attaching and downloading files, free account, premium account, serious user of AI, API access

3.4.2 Which to choose?

This section explains how to choose between free and premium AI assistant accounts based on work needs, features, integrations, and cost.

Key terms: free tiers, premium subscriptions, usage restrictions, more powerful AI models, advanced features, higher token limits, workflow, use cases, working style, tool integrations

3.4.3 Learning and experimenting

This subsection sets expectations for variable AI outputs, contrasts premium and enterprise access, and points to prompting as the way to improve results across services.

Key terms: free account, limited capabilities, AI performance, premium services, platform-independent options, enterprise solutions, company licensing agreements, Microsoft Copilot for Microsoft 365, prompt engineering, problem formulation

3.5 Prompts used in this chapter

This section provides example prompts for reviewing chapter content, revising prose in the author’s style, introducing a new topic, and finding a more current analogy.

Key terms: concept, compare your information, not correct, really useful that is missing, mimic the style, redundancy, essential message, Free vs Premium Accounts, brief introduction, mimicking my writing style

3.6 Summary

This summary consolidates the core concepts that govern chatbot inputs, conversational continuity, token-based limits, and the practical differences between free and premium AI accounts.

Where this is used later

Concepts explained in this chapter

← Chapter 2: Chatbots: Tasks and tips Chapter 4: Prompt engineering and problem formulation →

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.