Book description
Get hands-on with GPT 3.5, GPT 4, LangChain, Llama 2, Falcon LLM and more, to build LLM-powered sophisticated AI applications
Key Features
- Embed LLMs into real-world applications
- Use LangChain to orchestrate LLMs and their components within applications
- Grasp basic and advanced techniques of prompt engineering
Book 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.
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
Who this book is 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.
Table of contents
- Preface
- Introduction to Large Language Models
- LLMs for AI-Powered Applications
- Choosing an LLM for Your Application
- Prompt Engineering
- Embedding LLMs within Your Applications
- Building Conversational Applications
- Search and Recommendation Engines with LLMs
- Using LLMs with Structured Data
- Working with Code
-
Building Multimodal Applications with LLMs
- Technical requirements
- Why multimodality?
- Building a multimodal agent with LangChain
- Option 1: Using an out-of-the-box toolkit for Azure AI Services
- Option 2: Combining single tools into one agent
- Option 3: Hard-coded approach with a sequential chain
- Comparing the three options
- Developing the front-end with Streamlit
- Summary
- References
- Fine-Tuning Large Language Models
- Responsible AI
- Emerging Trends and Innovations
- Other Books You May Enjoy
- Index
Product information
- Title: Building LLM Powered Applications
- Author(s):
- Release date: May 2024
- Publisher(s): Packt Publishing
- ISBN: 9781835462317
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Developing Apps with GPT-4 and ChatGPT, 2nd Edition
This book provides an ideal guide for Python developers who want to learn how to build …
audiobook
Software Architecture: The Hard Parts
There are no easy decisions in software architecture. Instead, there are many hard parts-difficult problems or …
book
Software Architecture: The Hard Parts
There are no easy decisions in software architecture. Instead, there are many hard parts--difficult problems or …