
Building Chatbots
How chatbots are born, evolve and work: from ELIZA and AIML to natural language processing and large language models, with Python examples.
- 5 chapters
- 36 figures
- 90 exercises
Books to read online
Read in your browser, follow the Python examples and practise with the exercises in each chapter.

How chatbots are born, evolve and work: from ELIZA and AIML to natural language processing and large language models, with Python examples.

How to build the complete machinery of an AI agent from scratch in Python: the control loop, tools, harness, context, skills, MCP and orchestration, plus security, evaluation and cost.

From the token to the Transformer: tokenization, embeddings, attention, the GPT model, training, inference, fine-tuning and evaluation, with Python examples.

Ratios, proportions, percentages, sequences and logarithms, with applications to interest, discounts and loans.

Fundamentals, implementation and diagnosis of linear regression models, with examples in Python and scikit-learn.

Learning, generalization, linear hypotheses and transformations, neural networks, and recurrent networks.

Learn Java 21, object-oriented programming, and natural language processing while building the TutorJavaBot chatbot.