Leanpub Header

Skip to main content

Filters

Category: "Artificial Intelligence"

Books

  1. Under The Hood
    Build Every Layer of a Large Language Model from Scratch
    Ramchand Kumaresan

    Bestselling book on building LLMs. A practical, project-driven manual for engineers who want to understand how modern language models are built — and where they fail — by writing every layer themselves. From a scalar autograd engine to RLHF to fused specialists, in 36 hands-on projects with deliberate sabotage experiments. Build it. Break it. Measure it.

  2. What if TransE, ComplEx, RotatE and the rest of the knowledge graph “model zoo” were different views of one geometric operator? Learn the mathematics, code and practical design principles behind structured memory for trustworthy AI.

  3. A clear, illustrated guide to large language models, covering key concepts and practical applications. Ideal for projects, interviews, or personal learning.

  4. The Hundred-Page Language Models Book
    hands-on with PyTorch
    Andriy Burkov

    Master language models through mathematics, illustrations, and code―and build your own from scratch!

  5. A best-selling book. The practitioner's guide to Claude Code in production. Thirty-one chapters covering the agent loop, tools, hooks, MCP, the Claude Agent SDK, permissions, multi-agent orchestration, evals, observability, and cost engineering. Includes a full walkthrough of Anthropic's financial services reference agents. Code from real production systems, not toy examples.

  6. Make Bugs (nearly) Impossible
    Resisting human and AI slop in an LLM age.
    Jason Turner

    With the advent of LLMs and AI coding assistants, we are generating code at an ever-accelerating rate. How do we manage this influx of code without getting fatigued and overwhelmed? How do we ensure coding standards are maintained? What practices and tools can we put in place to amplify our efforts while not introducing more bugs?

  7. Everything you really need to know in Machine Learning in a hundred pages.

  8. Unlock the power of AI in your applications with this groundbreaking book on AI-driven application architecture. Discover practical patterns and principles for building intelligent, adaptive, and user-centric software systems that harness the potential of large language models and AI components.

  9. Codex CLI
    Agentic Engineering from First Principles
    Daniel Vaughan

    The definitive guide to agentic software engineering with Codex CLI, from prompting and AGENTS.md fundamentals to multi-agent orchestration, CI/CD integration, security hardening, and enterprise deployment across 28 hands-on chapters.

  10. Agentic Programming
    From Prompts to Production: A Path to Al Fluency
    Jerod W. Wilkerson

    The most important impact of AI on software development isn't that it writes code faster — it's that it changes what you can delegate. Agentic Programming is a practical roadmap for climbing the AI Fluency Ladder: from prompting to agentic workflows, verified execution, and ultimately autonomous software development.

  11. System Design for the LLM Era
    Patterns and Principles for Production-Grade AI Architecture
    Sampriti Mitra

    STOP building fragile AI wrappers. START designing resilient AI systems. Lots of companies are trying to make their small AI experiments into big products, but they don't have a good plan. Engineers need a practical guide to build these new AI systems the right way - so they can handle scale, be reliable, and won't cost too much. This book is that guide. It explains how to design systems that use AI models. This book breaks down the architecture of real AI applications, like an AI-powered code editor or a smart learning app. It gives you a deep, practical look at the real-world challenges and solutions for building these systems. It discusses system design concepts for systems that use LLMs.

  12. Build Your Own Coding Agent
    The Zero-Magic Guide to AI Agents in Pure Python
    J. Owen

    Skip the black-box frameworks. Build a production-grade AI coding agent from scratch in pure Python - cloud or local, tested with pytest, all in a single file.

  13. Generative AI in a Nutshell
    How to Survive and Thrive in the Age of AI
    Henrik Kniberg

    This is a fast-paced, practical, and visual guide to the strange new world of Generative AI. It is like an extended version of Henrik's viral video with the same name. Course version: The book is also available as a course on Leanpub. If your company wants to pay for you to take an AI course, now you can :) Print version: Paperback & Hardcover are available on Amazon. Use your own country's amazon site (ex: Amazon.se for Sweden) to minimize shipping time and cost.

  14. Metagraph for AI Agents
    Volodymyr Pavlyshyn

    Metagraphs for Agentic AI: Beyond Triples, Beyond HypergraphsFrom Knowledge Graphs to Knowledge ArchitecturesThe triple is not enough.Every AI engineer building agent memory hits the same wall. You model a meeting as a knowledge graph triple — and immediately lose the fact that five people were in the room, a decision was made, and that decision caused three downstream actions. You reify. You flatten. You create workarounds. And your "knowledge graph" becomes a tangle of auxiliary nodes that machines can traverse but no human can reason about.This book shows you the way out. What You'll Learn Metagraphs are graph structures where edges connect sets of nodes to sets of nodes — and where edges themselves can be referenced as first-class nodes. They are the missing data structure for AI agents that need to remember, reason, and coordinate like humans do.This book takes you on a complete journey:Hypergraphs first. You'll learn what they are, why they matter, and where they break down. You'll implement them three ways — in SQL, in LadybugDB (Cypher), and in TypeDB — so you understand the tradeoffs viscerally, not just theoretically.Then metagraphs. You'll see how metagraphs solve the fundamental hypergraph problem (edges that can't be nodes), explore RDF named graphs as a lightweight metagraph, and implement full metagraphs in the same three database paradigms with production-ready, commented code.Then the big ideas. Semantic Spacetime. Holonic systems. Human cognitive architecture mapped to graph structures. Multi-agent coordination. Promise Theory for autonomous AI networks. This is where metagraphs stop being a data structure and become an architecture for intelligence. Who This Book Is For You're a software engineer, AI researcher, or knowledge graph practitioner who builds real systems. You've used Neo4j or RDF stores. You've built RAG pipelines. You've felt the limits. You want to know what comes next.No PhD required. Every concept comes with working code in SQL, Cypher, TypeQL, SPARQL, and Python. What Makes This Book Different This isn't a theoretical monograph. It's the distillation of two and a half years of research, 130+ published articles, and hands-on implementation at the intersection of knowledge graphs and agentic AI.Every chapter bridges theory and practice. You'll read about Basu and Blanning's formal metagraph definition — and then build the schema in PostgreSQL. You'll learn Mark Burgess's Promise Theory — and then model a multi-agent coordination protocol as a six-layer promise graph. You'll understand why labeled property graphs are secretly metagraphs — and what that means for your Neo4j deployment today. 18 Chapters. Three Parts. One Argument. Part I — The Hypergraph Foundation (7 chapters): From the knowledge representation crisis through hypergraph theory to three complete database implementations.Part II — The Metagraph Solution (5 chapters): Metagraphs as the answer, RDF named graphs as a bridge, and three full metagraph implementations with detailed commentary.Part III — Theory Meets Practice (6 chapters): Semantic Spacetime, labeled property graphs, AI memory and human cognition, holonic systems, agent-to-agent interaction, and Promise Graphs for network-of-networks coordination. The Core Thesis If you want AI agents that reason like humans, you need knowledge structures that capture how humans actually organize knowledge — not as flat collections of facts, but as nested, hierarchical, context-rich, temporally-aware structures where relationships themselves carry meaning and can be the subject of further reasoning.Metagraphs are that structure. This book shows you why, and how to build with them.

  15. Product Engineering with AI
    A practical guide to product engineering in an AI native era
    Addy Osmani and Hassan Djirdeh

    A practical guide to product engineering in an AI native era, where building shifts from manual construction to steering tools, editors, and agents. Product Engineering with AI covers platforms, agentic workflows, prompting, code quality, UX, and responsible practices for getting from prototype to production.