Leanpub Header

Skip to main content

The Beginner's Guide to AI

Understanding Artificial Intelligence, How LLMs Work, What They Can Do, Their Limitations, and How to Use Them Effectively

The Beginner's Guide to AI
This book is 100% completeLast updated on 2026-09-19

AI is changing how we work, learn and live, but understanding it does not have to be complicated. This practical guide explains how modern AI and LLMs work, what they can do, where they fall short and how to use them effectively without the hype.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
142
Pages
About

About

About the Book

This book takes you from knowing nothing about artificial intelligence to understanding how modern AI systems work, what they are genuinely capable of, where they fail, and how to use them wisely in your daily life and work. It avoids hype and fearmongering while giving you a clear mental model of the technology, the vocabulary to talk about it, and practical skills for using it responsibly.

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 420 engineers and researchers. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Contents

Table of Contents

Understanding Artificial Intelligence, How LLMs Work, What They Can Do, Their Limitations, and How to Use Them Effectively

Introduction

Chapter 1: What Is Artificial Intelligence, Really?

  1. The Promise and the Confusion
  2. Why Every Definition of AI Is a Moving Target
  3. The Real Core: Pattern Recognition at Scale
  4. What AI Is Not: Consciousness, Understanding, Intent
  5. Why the Confusion Persists
  6. What This Book Will Help You Understand

Chapter 2: From Rule-Based Programs to Learning Machines

  1. Early Dreams: The Birth of the Field in the 1950s
  2. Rule-Based Systems and Expert Systems
  3. The Limits of Hand-Crafted Rules
  4. The First AI Winters
  5. The Expert Systems Boom and the Second Winter
  6. The Data Revolution: More Compute, More Data, More Patience
  7. The Deep Learning Breakthrough

Chapter 3: The Family Tree of AI Terms

  1. The Nesting Doll Model: How These Terms Relate
  2. Artificial Intelligence as the Umbrella
  3. Machine Learning and Its Variants
  4. Deep Learning and Neural Networks
  5. Generative AI and Large Language Models
  6. Specialized Domains: NLP, Vision, Robotics, Agents
  7. Putting It All Together

Chapter 4: The Training Ground: How LLMs Learn from Data

  1. Where the Data Comes From: The Internet and Beyond
  2. Cleaning and Filtering Training Data
  3. What a Model “Sees” During Training
  4. Learning as Pattern Detection, Not Reading
  5. The Scale of Modern Training Datasets
  6. Data Quality, Biases, and What Data Shapes the Model

Chapter 5: Words Become Numbers: Tokens and Embeddings

  1. How Computers Understand Text: The Necessity of Numbers
  2. Tokenization: Splitting Words into Pieces
  3. Why Tokens Matter for Context Limits and Cost
  4. Embeddings: Turning Tokens into Vectors of Meaning
  5. Similarity in Vector Space: Why Related Ideas Cluster Together
  6. What Embeddings Capture and What They Miss

Chapter 6: The Neural Network: Brains Made of Math

  1. The Neuron Metaphor and Its Limits
  2. Layers and Computation: How Data Flows Through
  3. Parameters: The Knobs the Model Adjusts
  4. Learning by Minimizing Errors
  5. Why Deep Networks Are Powerful
  6. The Meaning of Model Size and Scaling

Chapter 7: Attention and Transformers: The Architecture That Changed Everything

  1. The Problem with Earlier Models
  2. The Transformer Revolution
  3. Attention Explained: Weighing What Matters
  4. Self-Attention and Context
  5. Why Transformers Handle Language So Well
  6. The Recipe: Tokens Plus Embeddings Plus Attention Plus Layers

Chapter 8: From Pretraining to Polishing: Fine-Tuning and Alignment

  1. Pretraining: Learning Language from Raw Text
  2. What the Model Learns During Pretraining
  3. Supervised Fine-Tuning: Teaching Helpful Behavior
  4. Reinforcement Learning and Human Feedback
  5. Reward Models and Preference Optimization
  6. Why Raw Pretrained Models Are Not Chat-Ready

Chapter 9: When You Hit Send: How Inference and Generation Work

  1. The Difference Between Training and Inference
  2. Next-Token Prediction: The Basic Task
  3. Autoregressive Generation: Building Responses Word by Word
  4. Temperature and Sampling: Controlling Creativity
  5. Why Generation Is Not Database Lookup
  6. Speed, Cost, and the Context Window

Chapter 10: The Real Strengths of Modern AI

  1. Language Understanding and Generation
  2. Summarization and Information Synthesis
  3. Translation and Cross-Lingual Capability
  4. Code Generation and Technical Assistance
  5. Creative Support and Idea Exploration
  6. Speed, Scalability, and Accessibility
  7. Putting It Together

Chapter 11: The Real Limitations of Modern AI

  1. Hallucinations: What They Are and Why They Happen
  2. Confidence Without Correctness
  3. Arithmetic and Systematic Reasoning Failures
  4. Biases and Incomplete Perspectives
  5. The Knowledge Cutoff and Outdated Information
  6. Prompt Injection and Security Concerns
  7. Putting It Together

Chapter 12: What LLMs Do Not Know, Do Not Feel, and Do Not Understand

  1. The Fluency Trap: Why Sounding Smart Is Not Being Smart
  2. Pattern Matching Versus Understanding
  3. The Chinese Room and Similar Arguments
  4. Knowledge, Beliefs, and Truth
  5. Consciousness, Feeling, and What We Know and Do Not Know
  6. What We Can and Cannot Say About Model “Intelligence”

Chapter 13: How to Talk to AI: Prompting That Actually Works

  1. What a Prompt Is and How the Model Interprets It
  2. Clarity: The Most Important Rule
  3. Providing Context and Constraints
  4. Giving Examples: Few-Shot Prompting
  5. Asking for Structured Outputs
  6. Common Prompting Mistakes and How to Fix Them

Chapter 14: Working with AI on Complex Tasks

  1. Decomposition: Breaking Big Tasks into Steps
  2. Iterative Refinement: Prompting, Reviewing, Revising
  3. Self-Critique: When It Helps and When It Does Not
  4. Chaining and Multi-Step Workflows
  5. Combining Multiple Tools and Techniques
  6. When to Stop Delegating to AI

Chapter 15: Tools, Retrieval, and AI Agents

  1. The Limits of Training-Time Knowledge
  2. Tool Use: Giving AI Functions to Call
  3. Retrieval-Augmented Generation (RAG)
  4. AI Agents and Autonomous Action
  5. The Trade-Offs: Flexibility Versus Reliability

Chapter 16: Building AI Into Your Workflow

  1. Email, Communication, and Administrative Tasks
  2. Writing and Content Creation
  3. Research and Information Gathering
  4. Programming and Technical Work
  5. Learning and Education
  6. When NOT to Use AI (or When to Be Extremely Cautious)

Chapter 17: How to Evaluate AI-Generated Information

  1. Fluency, Plausibility, and Accuracy: Not the Same
  2. Spotting Hallucinated Sources and Citations
  3. Cross-Checking Key Facts
  4. Using AI to Help Verify Itself
  5. When AI Output Needs Expert Review
  6. Building Verification Habits

Chapter 18: AI and Work: Transformation, Not Replacement

  1. The Reality of Automation: Tasks, Not Jobs
  2. What AI Can Realistically Replace
  3. Augmentation: Working with AI Rather Than Against It
  4. Who Benefits and Who Does Not
  5. Skills That Matter More and Skills That Matter Less
  6. Career Strategy in an AI-Shaped Economy

Chapter 19: Misinformation, Deepfakes, and the Future of Truth

  1. The Scale Problem: AI-Generated Content at Industrial Volume
  2. Deepfakes and Synthetic Media
  3. Misinformation and Manipulation
  4. Authentication and Provenance
  5. The Trust Crisis
  6. What Individuals and Society Can Do

Chapter 20: Power, Ethics, and the Questions We Have Not Solved

  1. Who Controls AI and Why It Matters
  2. Environmental Costs of Training and Running Models
  3. Copyright, Data Rights, and Intellectual Property
  4. Surveillance, Privacy, and Civil Liberties
  5. Fairness, Bias, and Harm
  6. Regulation and Governance

Chapter 21: The Next Steps: What Is Emerging Now

  1. Scaling and Specialization Trends
  2. Multimodal Systems
  3. Reasoning Models and Chain-of-Thought
  4. On-Device and Local AI
  5. Robotics and Embodied AI
  6. Reliability and Verifiability Research

Chapter 22: Living with AI: A Practical Conclusion

  1. Your Mental Model of AI: The Key Takeaways
  2. Using AI Wisely: Principles Over Tricks
  3. Knowing When to Trust, When to Verify, When to Ignore
  4. Continuing Your Education About AI
  5. Being a Responsible User and Citizen
  6. The Human Center: AI as a Tool, You as the Purpose

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub