Thanks to visit codestin.com
Credit goes to www.packtpub.com

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
LLMs in Enterprise
LLMs in Enterprise

LLMs in Enterprise: Design strategies, patterns, and best practices for large language model development

Arrow left icon
Profile Icon Ahmed Menshawy Profile Icon Mahmoud Fahmy
Arrow right icon
€28.99 €32.99
eBook Sep 2025 564 pages 1st Edition
eBook
€28.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Ahmed Menshawy Profile Icon Mahmoud Fahmy
Arrow right icon
€28.99 €32.99
eBook Sep 2025 564 pages 1st Edition
eBook
€28.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€28.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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

LLMs in Enterprise

1 Introduction to Large Language Models (LLMs)

Join our book community on Discord

https://packt.link/EarlyAccess/

Artificial Intelligence (AI) refers to computer systems designed to augment human intelligence, providing tools that enhance productivity by automating complex tasks, analyzing vast amounts of data, and assisting with decision-making processes. Large Language Models (LLMs) are advanced AI applications capable of understanding and generating human-like text. These models function based on the principles of machine learning, where they process and transform vast datasets to learn the nuances of human language. A key feature of LLMs is their ability to generate coherent, natural-sounding outputs, making them an essential tool for building applications ranging from automated customer support to content generation and beyond.

LLMs are a subset of models in the field of natural language processing (NLP), which is itself a critical area of AI. The field of NLP is all about bridging...

Historical Context and Evolution of Language Models (LMs)

There are several misconceptions surrounding LMs, notably the belief that they were invented by OpenAI. However, the idea of LMs is not just a few years old, it actually spans several decades. As illustrated in figure 1.2, the concept behind some LMs is quite intuitive: given an input sequence, the task of the model is to predict the next token:

Figure 1.2: LMs and prediction of next token given the previous words (context)

To truly appreciate the sophistication of modern LMs, it's essential to explore the historical evolution and the diverse range of disciplines from which they draw inspiration, all the way up to the recent transformative developments we are currently witnessing.

Early Developments

The origins of LMs can be traced back several decades, originating in the foundational work on statistical models for natural language processing. Early LMs primarily utilized basic statistical methods, such as n-gram models...

Evolutions of LLMs Architectures

The development of language model architectures has undergone a transformative journey as shown in Figure 1.5, tracing its origins from simple word embeddings to sophisticated models capable of understanding and generating multimodal content. This progression is elegantly depicted in figure X about the "LLM Evolutionary Tree" that starts from foundational models before 2018, such as FastText, GloVe, and Word2Vec, and extends to the latest advancements like the LLaMA series and Google's Bard.

Figure 1.5: A timeline of LLMs development. Image Credit

Let's look at this evolution in a bit more detail:

Early Foundations: Word Embeddings

Initially, models like FastText, GloVe, and Word2Vec represented words as vectors in high-dimensional space, capturing semantic and syntactic similarities based on their co-occurrence in large text corpora. These embeddings provided a static representation of words, serving as the backbone for many early...

GPT Assistant Training Recipe

Before diving into the specifics of how GPT assistants like ChatGPT are developed, it's essential to understand the foundational elements and methodologies involved in training these advanced language models. The process includes several stages, each contributing to the model's ability to comprehend and generate human-like text.

The diagram in figure 1.7 illustrates the standard training recipe used to develop a GPT assistant, such as ChatGPT. This process is divided into four distinct stages, each crucial for evolving a basic neural network into an advanced AI capable of understanding and generating profound and convincing human-like text.

Figure 1.7: Training stages of GPT assistants

Let's start with the first and most computationally intensive stage which is for building the base model from internet scale data.

Building the Base Model

The first stage in the training of LLMs such as GPTs is the creation of a robust base model. This foundational...

Decoding the Realities and Myths of LLMs

LLMs like OpenAI's GPT series have sparked widespread intrigue and debate across the tech world and beyond. While they are often seen as groundbreaking advancements, there are numerous misconceptions and exaggerated claims surrounding their capabilities and origins. This section aims to clarify these misunderstandings by exploring the historical development of LLMs, addressing common myths, and examining their real-world applications and limitations.

From their early statistical underpinnings to the sophisticated neural networks, we see today, as you've seen earlier in this chapter, the evolution of language models has been a collaborative and incremental process, contrary to the notion that they suddenly emerged from a single innovator or institution. Additionally, we will discuss the critical insights of Ada Lovelace, which remain profoundly relevant in understanding the fundamental nature of these models, as well as the limitations...

Objective-Driven AI

The concept of objective-driven AI, depicted in figure 1.14, proposed by AI pioneer Yann LeCun, represents a potential pathway towards more sophisticated forms of artificial intelligence, potentially leading to Artificial General Intelligence (AGI). This approach focuses on designing AI systems that can learn and plan to achieve specific objectives in complex environments, moving beyond mere pattern recognition to incorporate elements of reasoning, planning, and decision-making.

LeCun argues that for AI to reach the level of general intelligence, it must have the ability to learn models of the world that allow it to predict and manipulate its environment. This would involve not just responding to inputs based on learned data but actively seeking information and learning causality, thus developing a more profound, actionable understanding of its surroundings.

Figure 1.14: Objective driven-AI by Yann LeCun

Human-Technology Augmentation

Historically, the development of technology has been driven by the desire to augment human capabilities as shown in figure 1.15, reduce labor, and solve complex problems. From the invention of the wheel to the creation of the internet, technological advancements have aimed to extend the physical and cognitive reach of humanity.

In the context of AI and LLMs, a primary goal for many developers is to augment human abilities rather than replace them (irrespective of the doom and gloom often presented in the media or by policymakers). AI systems are increasingly used to enhance decision-making processes, automate routine tasks, and provide insights that are beyond the scope of human capability due to data volume or complexity.

Figure 1.15: Human-technology augmentation

This section addressed common misconceptions and realities about LLMs, particularly how some policymakers use the purported existential risks of AI and the notion of AI taking over as distractions...

Summary

In this chapter, we've embarked on an exploration of LLMs, diving into their historical background, current capabilities, and the common misconceptions that surround these powerful tools. This journey through the development of LLMs not only highlights the technological breakthroughs that have shaped these models but also points toward future advancements and the challenges that lie ahead.

LLMs use an auto-regressive method to predict the next word in a sequence by considering previous words, but this approach has limitations. For instance, the likelihood of errors increases as the sequence lengthens because each prediction carries a chance of error that accumulates over time. Despite their impressive fluency, LLMs cannot truly plan or understand context as humans do, often producing responses that are a mere recombination of learned data without real insight. This is due to their training being limited to existing text, which prevents them from generating novel content or...

References

...

Unlock this book’s exclusive benefits now

Scan this QR code or go to packtpub.com/unlock, then search for this book by name.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore design patterns for applying LLMs to solve real-world enterprise problems
  • Learn strategies for scaling and deploying LLMs in complex environments
  • Get more relevant results and improve performance by fine-tuning and optimizing LLMs
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

The integration of large language models (LLMs) into enterprise applications is transforming how businesses use AI to drive smarter decisions and efficient operations. LLMs in Enterprise is your practical guide to bringing these capabilities into real-world business contexts. It demystifies the complexities of LLM deployment and provides a structured approach for enhancing decision-making and operational efficiency with AI. Starting with an introduction to the foundational concepts, the book swiftly moves on to hands-on applications focusing on real-world challenges and solutions. You’ll master data strategies and explore design patterns that streamline the optimization and deployment of LLMs in enterprise environments. From fine-tuning techniques to advanced inferencing patterns, the book equips you with a toolkit for solving complex challenges and driving AI-led innovation in business processes. By the end of this book, you’ll have a solid grasp of key LLM design patterns and how to apply them to enhance the performance and scalability of your generative AI solutions.

Who is this book for?

This book is designed for a diverse group of professionals looking to understand and implement advanced design patterns for LLMs in their enterprise applications, including AI and ML researchers exploring practical applications of LLMs, data scientists and ML engineers designing and implementing large-scale GenAI solutions, enterprise architects and technical leaders who oversee the integration of AI technologies into business processes, and software developers creating scalable GenAI-powered applications.

What you will learn

  • Apply design patterns to integrate LLMs into enterprise applications for efficiency and scalability 
  • Overcome common challenges in scaling and deploying LLMs 
  • Use fine-tuning techniques and RAG approaches to enhance LLM efficiency
  • Stay ahead of the curve with insights into emerging trends and advancements, including multimodality
  • Optimize LLM performance through customized contextual models, advanced inferencing engines, and evaluation patterns
  • Ensure fairness, transparency, and accountability in AI applications

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 19, 2025
Length: 564 pages
Edition : 1st
Language : English
ISBN-13 : 9781836203063
Category :
Languages :
Concepts :

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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Sep 19, 2025
Length: 564 pages
Edition : 1st
Language : English
ISBN-13 : 9781836203063
Category :
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.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
€189.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 €5 each
Feature tick icon Exclusive print discounts
€264.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 €5 each
Feature tick icon Exclusive print discounts

Table of Contents

19 Chapters
Part 1: Background and Foundational Concepts Chevron down icon Chevron up icon
Introduction to Large Language Models Chevron down icon Chevron up icon
LLMs in Enterprise: Applications, Challenges, and Design Patterns Chevron down icon Chevron up icon
Advanced Fine-Tuning Techniques and Strategies for Large Language Models Chevron down icon Chevron up icon
Retrieval-Augmented Generation Pattern Chevron down icon Chevron up icon
Customizing Contextual LLMs Chevron down icon Chevron up icon
Part 2: Advanced Design Patterns and Techniques Chevron down icon Chevron up icon
The Art of Prompt Engineering for Enterprise LLMs Chevron down icon Chevron up icon
Enterprise Challenges in Evaluating LLM Applications Chevron down icon Chevron up icon
The Data Blueprint: Crafting Effective Strategies for LLM Development Chevron down icon Chevron up icon
Managing Model Deployments in Production Chevron down icon Chevron up icon
Accelerated and Optimized Inferencing Patterns Chevron down icon Chevron up icon
Part 3: GenAI in the Enterprise Chevron down icon Chevron up icon
Connected LLMs Pattern Chevron down icon Chevron up icon
Monitoring LLMs in Production Chevron down icon Chevron up icon
Responsible AI in LLMs Chevron down icon Chevron up icon
Emerging Trends and Multimodality 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.

Modal Close icon
Modal Close icon