Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Building Business-Ready Generative AI Systems
Building Business-Ready Generative AI Systems

Building Business-Ready Generative AI Systems: Build Human-Centered Generative AI Systems with Agents, Memory, and LLMs for Enterprise

Arrow left icon
Profile Icon Denis Rothman
Arrow right icon
NZ$40.99 NZ$58.99
eBook Jul 2025 444 pages 1st Edition
eBook
NZ$40.99 NZ$58.99
Paperback
NZ$58.99 NZ$73.99
Subscription
Free Trial
Arrow left icon
Profile Icon Denis Rothman
Arrow right icon
NZ$40.99 NZ$58.99
eBook Jul 2025 444 pages 1st Edition
eBook
NZ$40.99 NZ$58.99
Paperback
NZ$58.99 NZ$73.99
Subscription
Free Trial
eBook
NZ$40.99 NZ$58.99
Paperback
NZ$58.99 NZ$73.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building Business-Ready Generative AI Systems

Building the Generative AI Controller

A generative AI system (GenAISys)’s controller requires two key components: a conversational agent and an orchestrator. The conversational agent—powered by a generative AI model—interacts with human users and system processes. The orchestrator, on the other hand, is a set of generative AI and non-AI functions, such as managing user roles, content generation, activating machine learning algorithms, and running classical queries. We need both to build a functional GenAISys.

If we examine this architecture closely, we’ll see that software orchestrators and user interfaces date back to the first computers. Any operating system, with even basic functionality, has orchestrators that trigger disk space alerts, memory usage, and hundreds of other functions. Today’s user interfaces are intuitive and have event-driven functionality, but at a high level, the underlying architecture of a GenAISys still echoes decades...

Architecture of the AI controller

We’ll continue to implement the architecture of GenAISys as we’ve defined in Figure 1.1 from Chapter 1. Figure 2.1, on the other hand, takes us further into the underlying functions of a GenAISys.

Figure 2.1: Defining the functions to build

Figure 2.1: Defining the functions to build

We established in the previous chapter that human roles are essential, and the preceding figure acknowledges that fact. We are the core of a GenAISys, no matter how advanced the building blocks (models or frameworks) are. Our first task is designing using our human creativity to find effective ways to implement a GenAISys controller. GenAISys needs human creativity, judgment, and technical decision-making. Under the hood of seamless copilots such as ChatGPT, Gemini, and Microsoft Copilot lie intricate layers of AI and non-AI logic. If we want to build our own ChatGPT-like system, we humans need to do the heavy lifting!

We will build two separate programs:

  • A conversational...

Conversational AI agent

Our two primary goals for this section are to build a conversational AI agent with the following:

  • Short-term memory retention for a full ChatGPT-like conversational loop. The user and agent can have as many exchanges as they wish; there is no limit to the number of interactions between them.
  • Long-term memory retention across multiple users and sessions. We’ll store in-memory sessions and persist them to a memory storage (in this case, a text file). This will enable multi-user contextual awareness for users such as John, Myriam, and Bob. Our conversational agent will move beyond classic one-to-one ChatGPT-style dialogues toward a custom GenAISys capable of handling multi-session, multi-user interactions.

To get started, open Conversational_AI_Agent.ipynb in this chapter’s GitHub directory (https://github.com/Denis2054/Building-Business-Ready-Generative-AI-Systems/tree/main). This notebook will guide you through the environment...

AI controller orchestrator

In this section, we will build the first component of our AI controller orchestrator: the ability to select the right task to perform. We develop this component as a standalone component that we will integrate starting from Chapter 3, where we will bridge the conversational agent with the AI controller orchestrator through a Pinecone vector store.

Figure 2.6 illustrates the workflow of the AI controller orchestrator we’ll be developing:

  • C1. AI controller entry point input triggers the process.
  • C2. Analyzes input, which could be a system or human user prompt.
  • C3. Embeds user input through GPT-4o’s native functionality.
  • C4. Embeds task scenario repository through GPT-4o’s native functionality.
  • C5. Selects a scenario to execute a task that best matches the input.
  • C6. Executes the scenario selected by the AI controller orchestrator.
Figure 2.6: Workflow of the AI controller orchestrator

Figure 2.6: Workflow of the AI controller orchestrator...

Summary

The first takeaway from this chapter is the central role of humans in a GenAISys. Human design drove the creation of both our conversational agent and orchestrator. We started developing these two complex components with simply an OpenAI API and Python, yet we humans designed the initial levels of the AI controller that powers our custom GenAISys. The basic GenAISys rule will always apply: no human roles, no GenAISys. We design AI systems, implement them, maintain them, and evolve them based on ongoing feedback.

The second takeaway is how our conversational AI agent goes beyond a small-scale ChatGPT-like structure. We not only built short-term context and memory retention for a full-turn dialogue, but we also added long-term memory across multiple users and multiple topics. Our dialogue included three users (John, Myriam, and Bob) and two topics (geology and surfing). As we progress through the book, we will expand the scope of these multi-user, multi-topic sessions to...

Questions

  1. A ChatGPT-like GenAISys only needs a generative AI model such as GPT-4o. (True or False)
  2. A ChatGPT-like GenAISys doesn’t require an AI controller. (True or False)
  3. Human roles are critical when building and running GenAISys. (True or False)
  4. Generally, not always, a generative AI model such as GPT-4o contains a task tag in one form or the other. (True or False)
  5. Sometimes, not always, a generative model can find the most probable task to perform without a task tag. (True or False)
  6. Semantic text similarity cannot be natively performed by GPT-4o. (True or False)
  7. A full-turn generative AI conversation loop with an OpenAI API AI requires coding. (True or False)
  8. Long-term memory AI conversation sessions are never necessary. (True or False)
  9. Summarizing a text can only be done in English by GPT-4o. (True or False)
  10. An AI controller orchestrator is sentient. (True or False)

References

  • Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2020). Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. https://arxiv.org/abs/1910.10683
  • Ren, J., Sun, Y., Du, H., Yuan, W., Wang, C., Wang, X., Zhou, Y., Zhu, Z., Wang, F., & Cui, S. (2024). Generative Semantic Communication: Architectures, Technologies, and Applications. https://doi.org/10.48550/arXiv.2412.08642

Further reading

Subscribe for a Free eBook

New frameworks, evolving architectures, research drops, production breakdowns—AI_Distilled filters the noise into a weekly briefing for engineers and researchers working hands-on with LLMs and GenAI systems. Subscribe now and receive a free eBook, along with weekly insights that help you stay focused and informed.

Subscribe at https://packt.link/TRO5B or scan the QR code below.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build an adaptive, context-aware AI controller with advanced memory strategies
  • Enhance GenAISys with multi-domain, multimodal reasoning capabilities and Chain of Thought (CoT)
  • Seamlessly integrate cutting-edge OpenAI and DeepSeek models as you see fit

Description

In today's rapidly evolving AI landscape, standalone LLMs no longer deliver sufficient business value on their own. This guide moves beyond basic chatbots, showing you how to build advanced, agentic ChatGPT-grade systems capable of sophisticated semantic and sentiment analysis, powered by context-aware AI controllers. You'll design AI controller architectures with multi-user memory retention to dynamically adapt your system to diverse user and system inputs. You'll architect a Retrieval-Augmented Generation (RAG) system with Pinecone, designed to combine instruction-driven scenarios. Enhance your system’s intelligence with powerful multimodal capabilities—including image generation, voice interactions, and machine-driven reasoning—leveraging Chain-of-Thought orchestration to address complex, cross-domain automation challenges. Seamlessly integrate generative models like OpenAI’s suite and DeepSeek-R1 without disrupting your existing GenAISys ecosystem. Your GenAISys will apply neuroscience-inspired insights to marketing strategies, predict human mobility, integrate smoothly into human workflows, visualize complex scenarios, and connect to live external data, all wrapped in a polished, investor-ready interface. By the end, you'll have built a GenAISys capable of deploying intelligent agents in your business environment.

Who is this book for?

This book is for AI and Machine Learning Engineers seeking to enhance their understanding of Generative AI and its enterprise applications. It will particularly benefit those interested in building AI agents, creating advanced orchestration systems, and leveraging AI for automation in marketing, production, and logistics. Software architects and enterprise developers looking to build scalable AI-driven systems will also find immense value in this guide. No prior superintelligence experience is necessary, but familiarity with AI concepts is recommended.

What you will learn

  • Implement an AI controller with a conversation AI agent and orchestrator at its core
  • Build contextual awareness with short-term, long-term, and cross-session memory
  • Design cross-domain automation with multimodal reasoning, image generation, and voice features
  • Expand a CoT agent by integrating consumer-memory understanding
  • Integrate cutting-edge models of your choice without disrupting your existing GenAISys
  • Connect to real-time external data while blocking security breaches

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 25, 2025
Length: 444 pages
Edition : 1st
Language : English
ISBN-13 : 9781837020683
Vendor :
OpenAI , Facebook
Category :
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 25, 2025
Length: 444 pages
Edition : 1st
Language : English
ISBN-13 : 9781837020683
Vendor :
OpenAI , Facebook
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts

Table of Contents

13 Chapters
Defining a Business-Ready Generative AI System Chevron down icon Chevron up icon
Building the Generative AI Controller Chevron down icon Chevron up icon
Integrating Dynamic RAG into the GenAISys Chevron down icon Chevron up icon
Building the AI Controller Orchestration Interface Chevron down icon Chevron up icon
Adding Multimodal, Multifunctional Reasoning with Chain of Thought Chevron down icon Chevron up icon
Reasoning E-Marketing AI Agents Chevron down icon Chevron up icon
Enhancing the GenAISys with DeepSeek Chevron down icon Chevron up icon
GenAISys for Trajectory Simulation and Prediction Chevron down icon Chevron up icon
Upgrading the GenAISys with Data Security and Moderation for Customer Service Chevron down icon Chevron up icon
Presenting Your Business-Ready Generative AI System Chevron down icon Chevron up icon
Answers Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.