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 now! 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
Conferences
Free Learning
Arrow right icon
Building LLM Powered  Applications
Building LLM Powered  Applications

Building LLM Powered Applications: Create intelligent apps and agents with large language models

Arrow left icon
Profile Icon Valentina Alto
Arrow right icon
₱1427.99 ₱2040.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (22 Ratings)
eBook May 2024 342 pages 1st Edition
eBook
₱1427.99 ₱2040.99
Paperback
₱2551.99
Subscription
Free Trial
Arrow left icon
Profile Icon Valentina Alto
Arrow right icon
₱1427.99 ₱2040.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (22 Ratings)
eBook May 2024 342 pages 1st Edition
eBook
₱1427.99 ₱2040.99
Paperback
₱2551.99
Subscription
Free Trial
eBook
₱1427.99 ₱2040.99
Paperback
₱2551.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 LLM Powered Applications

Base models versus customized models

The nice thing about Large Language Models is that they have been trained and ready to use. As we saw in the previous section, training an LLM requires great investment in hardware (GPUs or TPUs) and it might last for months, hardly feasible from individuals. Luckily, pre-trained LLM are generalized enough to be applicable at various tasks, so they can be consumed as they are directly via their REST API (we will dive deeper into model consumption in next chapters). Nevertheless, there might be scenarios where a general-purpose LLM is not enough, since it lacks domain-specific knowledge or doesn’t conform to a particular style and taxonomy of communication. If this is the case, you might want to customize your model.

How to customize your model

There are three main ways to customize your model:

  • Extending non-parametric knowledge. This allows the model to access external sources of information to integrate its parametric knowledge while responding...

Summary

In this chapter, we explored the field of Large Language Models, with a technical deep dive into their architecture, functioning and training process. We saw the most prominent architectures such as the transformer-based frameworks, how the training process works and different ways to customize your own LLM.We now have the foundation to understand what LLMs are. In next chapter, we will see to use them and, more specifically, how to build intelligent applications with them.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Embed LLMs into real-world applications
  • Use LangChain to orchestrate LLMs and their components within applications
  • Grasp basic and advanced techniques of prompt engineering

Description

Building LLM Powered Applications delves into the fundamental concepts, cutting-edge technologies, and practical applications that LLMs offer, ultimately paving the way for the emergence of large foundation models (LFMs) that extend the boundaries of AI capabilities. The book begins with an in-depth introduction to LLMs. We then explore various mainstream architectural frameworks, including both proprietary models (GPT 3.5/4) and open-source models (Falcon LLM), and analyze their unique strengths and differences. Moving ahead, with a focus on the Python-based, lightweight framework called LangChain, we guide you through the process of creating intelligent agents capable of retrieving information from unstructured data and engaging with structured data using LLMs and powerful toolkits. Furthermore, the book ventures into the realm of LFMs, which transcend language modeling to encompass various AI tasks and modalities, such as vision and audio. Whether you are a seasoned AI expert or a newcomer to the field, this book is your roadmap to unlock the full potential of LLMs and forge a new era of intelligent machines.

Who is this book for?

Software engineers and data scientists who want hands-on guidance for applying LLMs to build applications. The book will also appeal to technical leaders, students, and researchers interested in applied LLM topics. We don’t assume previous experience with LLM specifically. But readers should have core ML/software engineering fundamentals to understand and apply the content.

What you will learn

  • Explore the core components of LLM architecture, including encoder-decoder blocks and embeddings
  • Understand the unique features of LLMs like GPT-3.5/4, Llama 2, and Falcon LLM
  • Use AI orchestrators like LangChain, with Streamlit for the frontend
  • Get familiar with LLM components such as memory, prompts, and tools
  • Learn how to use non-parametric knowledge and vector databases
  • Understand the implications of LFMs for AI research and industry applications
  • Customize your LLMs with fine tuning
  • Learn about the ethical implications of LLM-powered applications

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 22, 2024
Length: 342 pages
Edition : 1st
Language : English
ISBN-13 : 9781835462638
Category :
Languages :

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 : May 22, 2024
Length: 342 pages
Edition : 1st
Language : English
ISBN-13 : 9781835462638
Category :
Languages :

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 ₱5 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 ₱5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 8,063.97
Building LLM Powered  Applications
₱2551.99
Mastering NLP from Foundations to LLMs
₱2704.99
Transformers for Natural Language Processing and Computer Vision
₱2806.99
Total 8,063.97 Stars icon

Table of Contents

15 Chapters
Introduction to Large Language Models Chevron down icon Chevron up icon
LLMs for AI-Powered Applications Chevron down icon Chevron up icon
Choosing an LLM for Your Application Chevron down icon Chevron up icon
Prompt Engineering Chevron down icon Chevron up icon
Embedding LLMs within Your Applications Chevron down icon Chevron up icon
Building Conversational Applications Chevron down icon Chevron up icon
Search and Recommendation Engines with LLMs Chevron down icon Chevron up icon
Using LLMs with Structured Data Chevron down icon Chevron up icon
Working with Code Chevron down icon Chevron up icon
Building Multimodal Applications with LLMs Chevron down icon Chevron up icon
Fine-Tuning Large Language Models Chevron down icon Chevron up icon
Responsible AI Chevron down icon Chevron up icon
Emerging Trends and Innovations Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(22 Ratings)
5 star 54.5%
4 star 31.8%
3 star 0%
2 star 9.1%
1 star 4.5%
Filter icon Filter
Top Reviews

Filter reviews by




Javier Dec 08, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great content!!
Subscriber review Packt
Dag Aug 24, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent introduction to engineering LLM-based applications. Bummer that the code examples won't work with current langchain versions. Then again, fiddeling around with that framework is just another learning opportunity.
Subscriber review Packt
Javier Soques Jul 04, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good learning resource for understanding LLMs
Feefo Verified review Feefo
dr t Jun 01, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As an advocate of LLMs, this looked like a book that I should read.The book is well-written, well-structured, and easy to read. In 13 chapters, it takes readers through fundamental concepts (e.g. transformers, backprop, embeddings), to practical applications (e.g. building a chatbot, search engines) and considerations (e.g. choosing an LLM, prompt engineering), ethical and responsible considerations, and also looks at the latest advancements in the field of gen AI.This reader found the chapter on Search and Recommendation Engines with LLMs most compelling. The chapter explores how large language models can improve recommendation systems through the use of embeddings and generative models, the reader also learns how to build their own recommendation system application, utilising state-of-the-art LLMs with LangChain as the framework. Fascinating stuff!In summary, if you work with LLMs this is a useful book that contains lot of useful knowledge and practical examples. Recommended.
Amazon Verified review Amazon
Saksham May 25, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
One of the standout features of this book is its emphasis on real-world applications. The author shares numerous case studies and practical examples that highlight how LLMs can be used to create intelligent applications across various domains, from customer service chatbots to advanced content generation tools. These examples are not just technically informative but also thoughtfully chosen to demonstrate the potential for LLMs to enhance human productivity and creativity.
Amazon Verified review Amazon
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.