Skip to content
Instant download · PDF + web edition · Free sample of every book · 30-day refund promise
Latent Library Browse books
Programming

AI for Developers

Coding Assistants, AI Features and Good Engineering

Pages
85
Chapters
72
Level
Intermediate
Format
E-book

About this book

AI changes software development in two ways: how we write code, and what our code can do. This book covers both.

The first part shows how to work productively with coding assistants and agents: giving context, reviewing generated code, testing, refactoring, debugging and keeping security and licensing in view. The second part covers building AI features: calling models through APIs, structured output, retrieval, tool use, streaming, evaluation, cost and latency management, and production concerns.

Examples are language-neutral where possible, with short Python and JavaScript snippets.

What you will learn

  • Working effectively with coding assistants and agents
  • Reviewing, testing and securing generated code
  • Calling models: prompts, structured output and streaming
  • Retrieval and tool use in applications
  • Evaluating and monitoring AI features
  • Managing cost, latency and reliability in production

Table of contents

  1. IntroductionIntroduction
  2. Chapter 1The Developer's Mental Model
  3. Chapter 2Tokens and Context Windows
  4. Chapter 3A Basic API Call
  5. Chapter 4Statelessness and Conversation History
  6. Chapter 5Temperature and Determinism
  7. Chapter 6Choosing a Model
  8. Chapter 7Hosted APIs Versus Self-Hosting
  9. Chapter 8Latency
  10. Chapter 9Errors and Retries
  11. Chapter 10An Abstraction Layer
  12. Chapter 11Prompts as Code
  13. Chapter 12System Prompt Structure
  14. Chapter 13Delimiting Untrusted Input
  15. Chapter 14Few-Shot Examples
  16. Chapter 15Structured Output
  17. Chapter 16Handling Invalid Output
  18. Chapter 17Tool Calling
  19. Chapter 18Designing Good Tools
  20. Chapter 19Validating Tool Calls
  21. Chapter 20Streaming
  22. Chapter 21Multimodal Inputs
  23. Chapter 22Prompt Caching
  24. Chapter 23Why Retrieval-Augmented Generation
  25. Chapter 24The RAG Pipeline
  26. Chapter 25Chunking
  27. Chapter 26Embeddings and Vector Search
  28. Chapter 27Hybrid Search
  29. Chapter 28Reranking
  30. Chapter 29Permissions in Retrieval
  31. Chapter 30Citations and Grounding
  32. Chapter 31Evaluating Retrieval
  33. Chapter 32Keeping the Index Fresh
  34. Chapter 33Query Rewriting
  35. Chapter 34When Not to Use RAG
  36. Chapter 35Workflows Versus Agents
  37. Chapter 36Common Workflow Patterns
  38. Chapter 37The Agent Loop
  39. Chapter 38Agent Tool Design
  40. Chapter 39Planning and Reflection
  41. Chapter 40Human-in-the-Loop
  42. Chapter 41Memory for Agents
  43. Chapter 42Multi-Agent Systems
  44. Chapter 43Sandboxing
  45. Chapter 44Interoperability Protocols
  46. Chapter 45Debugging Agents
  47. Chapter 46Agent Reliability
  48. Chapter 47Why Evaluation Matters
  49. Chapter 48Building an Evaluation Set
  50. Chapter 49Grading Methods
  51. Chapter 50Model-Graded Evaluation
  52. Chapter 51Regression Testing
  53. Chapter 52Unit Tests Around the Model
  54. Chapter 53Observability
  55. Chapter 54Production Monitoring
  56. Chapter 55User Feedback Loops
  57. Chapter 56A/B Testing
  58. Chapter 57Model Upgrades
  59. Chapter 58Documentation for AI Features
  60. Chapter 59Prompt Injection
  61. Chapter 60Data Leakage
  62. Chapter 61Output Handling
  63. Chapter 62Secrets and Keys
  64. Chapter 63Cost Control
  65. Chapter 64Caching Responses
  66. Chapter 65Batch Processing
  67. Chapter 66Deployment Patterns
  68. Chapter 67Worked Example: A Help-Centre Answer Feature
  69. Chapter 68Worked Example: Invoice Extraction Pipeline
  70. Chapter 69Coding Assistants
  71. Chapter 70Working Well With Coding Assistants
  72. Chapter 71Reviewing AI-Generated Code
  73. Chapter 72A Production Readiness Checklist
  74. GlossaryGlossary

Who this book is for

Software developers who want to use AI in their workflow and build AI-powered features well.

Details

FormatPDF + web edition
Length85 pages (approx.)
Chapters72
LevelIntermediate
LanguageEnglish
TopicProgramming
AuthorLatent Library Editorial

Keep reading

You may also like

All books
$13.99
Details