@ManningBooks: Prompt engineering gets messy fast. What starts as a simple instruction can turn into endless tweaking, context adjustm…

X AI KOLs Following Products

Summary

Manning Books announces a new early access book 'Building LLM Applications with DSPy', teaching how to use the DSPy framework to optimize LLM prompts with Python. The book is 50% off through June 3rd.

Prompt engineering gets messy fast. What starts as a simple instruction can turn into endless tweaking, context adjustments, and rework when model behavior changes. @DSPyOSS approaches that differently by treating LLM apps more like software you can optimize instead of prompts you endlessly babysit. Building LLM Applications with DSPy shows how to use DSPy's contract-based Python framework to optimize context, evaluate prompt effectiveness, and adapt as models drift. New in the Manning Early Access Program and 50% off through June 3rd: https://hubs.la/Q04hnHsw0
Original Article
View Cached Full Text

Cached at: 05/21/26, 05:36 PM

Prompt engineering gets messy fast. What starts as a simple instruction can turn into endless tweaking, context adjustments, and rework when model behavior changes. @DSPyOSS approaches that differently by treating LLM apps more like software you can optimize instead of prompts you endlessly babysit.

Building LLM Applications with DSPy shows how to use DSPy’s contract-based Python framework to optimize context, evaluate prompt effectiveness, and adapt as models drift.

New in the Manning Early Access Program and 50% off through June 3rd: https://hubs.la/Q04hnHsw0


Building LLM Applications with DSPy - Serj Smorodinsky and Brett Kennedy

Source: https://www.manning.com/books/building-llm-applications-with-dspy?utm_campaign=44698415-book_smorodinsky&utm_content=378284378&utm_medium=social&utm_source=twitter&hss_channel=tw-24914741

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team -learn more


Look insideStatic, over-engineered prompts quickly lose effectiveness as models and data change. DSPy replaces inflexible text-based prompts with dynamic contract-based Python code, so your prompts can freely adapt and scale. InBuilding LLM Applications with DSPy, AI engineersSerj SmorodinskyandBrett Kennedyintroduce the powerful DSPy framework and show you how it can revolutionize the way you think of prompt and context engineering. In this practical guide, you’ll learn how DSPy automatically optimizes context, evaluates prompt effectiveness, and automatically tweaks your prompts as models drift and change. As you go, you’ll get tips and techniques to maintain stable inference results as your apps and agents evolve.

Building LLM Applications with DSPyintroduces DSPy best practices you can adopt to create reliable, production-ready systems through proper task definition, evaluation, and optimization. Practical to the core, this book helps you construct a full professional portfolio of AI applications, including an LLM-based classification system, a summarizer, and RAG-based application. You’ll build multi-step workflows using DSPy’s modular system, finally culminating in fully agentic pipelines, all without writing a single prompt by hand. A DSPy contributor, authorSerj Smorodinskyspeaks authoritatively about how to get the most out of this elegant tool. And, as with every Manning book, you’ll find a carefully-constructed learning path, readable text, lots of helpful graphics, and our promise that the details are correct and reliable.

what’s inside

  • Define prompts as Python classes
  • Optimize prompts automatically for higher accuracy
  • Structure complex tasks into simple modules

about the reader

For anyone working directly with LLMs, with basic Python skills.

about the authors

Serj Smorodinskyis a contributor to DSPy, a data scientist, and AI engineer with over ten years of combined experience in software development and data science. His work spans NLP for customer-service related conversational AI, agentic workflow automation, and LLM evaluation, with hands-on experience leading teams to build chatbots and retrieval-augmented systems for enterprise clients. He also teaches agentic systems and data science in production at Nebius Academy (formerly Y-Data School of Data Science).

Brett Kennedyis a data scientist with over thirty years of software development experience and more than ten in data science. He is a regular contributor to open source projects and an author of data science blog articles. He is also the author ofOutlier Detection in Python.

choose your plan

pro

$249.99 only $20.83 per month

  • access toall Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose anotherfree productevery time you renew
  • choosetwelve free productsper year
  • exclusive50% discounton all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building LLM Applications with DSPyebook forfree

team

$499.99 only $41.67 per month

  • five seatsfor your team
  • access toall Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose anotherfree productevery time you renew
  • choosetwelve free productsper year
  • exclusive50% discounton all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building LLM Applications with DSPyebook forfree

choose your plan

pro

$249.99 only $20.83 per month

  • access toall Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose anotherfree productevery time you renew
  • choosetwelve free productsper year
  • exclusive50% discounton all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building LLM Applications with DSPyebook forfree

team

$499.99 only $41.67 per month

  • five seatsfor your team
  • access toall Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose anotherfree productevery time you renew
  • choosetwelve free productsper year
  • exclusive50% discounton all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Building LLM Applications with DSPyebook forfree

Similar Articles

@MaximeRivest: https://x.com/MaximeRivest/status/2055293570119065875

X AI KOLs Following

MaximeRivest explains DSPy's five core components—Optimizers, Signatures, LMs, Modules, and Adapters—and argues that effective AI engineering requires mastering these elements, highlighting the often-overlooked role of rendering structured outputs.

SPEAR: Code-Augmented Agentic Prompt Optimization

arXiv cs.CL

SPEAR is a code-augmented agentic prompt optimizer that uses a Python sandbox for structural error analysis, achieving state-of-the-art performance on multiple LLM evaluation suites including industrial judge tasks, BBH, and GSM8K.