Generative AI, such as Large Language Models (LLMs) possess immense potential. These models simplify problems but have limitations, including contextual memory constraints, prompt size issues, real-time data gaps, and occasional "hallucinations." With this book, you'll go from preparing the envir
Building Data-Driven Applications with LlamaIndex, 1st Edition
β Scribed by Andrei Gheorghiu
- Publisher
- Packt Publishing
- Year
- 2024
- Tongue
- English
- Leaves
- 368
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Many enthusiasts as well as more experienced programmers have already discovered the immense potential that Generative AI such as Large Language Models possess. These models simplify problems but have limitations including contextual memory constraints prompt size issues real-time data gaps and occasional hallucinations.
With this book you will be taken through all the necessary steps from preparing the environment to gradually adding features and deploying the final project. Starting from fundamental LLM concepts to exploring the features of this framework. Practical examples guide you through necessary steps on personalising and launching your LlamaIndex projects. Overcome LLM limitations build end-user applications and acquire skills in ingesting indexing querying and connecting dynamic knowledge bases. The book covers Generative AI and LLM understanding LlamaIndex deployment and concludes with customisation providing a holistic grasp of LlamaIndex's capabilities and applications.
By the end of the book you will be able to resolve challenges in LLMs and build interactive AI-driven applications by applying best practices in prompt engineering and troubleshooting Generative AI projects
β¦ Table of Contents
Part 1:Introduction to Generative AI and LlamaIndex
Chapter 1: Understanding Large Language Models
Introducing GenAI and LLMs
Understanding the role of LLMs in modern technology
Exploring challenges with LLMs
Augmenting LLMs with RAG
Summary
Chapter 2: LlamaIndex: The Hidden Jewel - An Introduction to the LlamaIndex Ecosystem
Technical requirements
Optimizing language models β the symbiosis of fine-tuning, RAG, and LlamaIndex
Discovering the advantages of progressively disclosing complexity
Introducing PITS β our LlamaIndex hands-on project
Preparing our coding environment
Familiarizing ourselves with the structure of the LlamaIndex code repository
Summary
Part 2: Starting Your First LlamaIndex Project
Chapter 3: Kickstarting Your Journey with LlamaIndex
Technical requirements
Uncovering the essential building blocks of LlamaIndex β documents, nodes, and indexes
Building our first interactive, augmented LLM application
Starting our PITS project β hands-on exercise
Summary
Chapter 4: Ingesting Data into Our RAG Workflow
Technical requirements
Ingesting data via LlamaHub
An overview of LlamaHub
Using the LlamaHub data loaders to ingest content
Parsing the documents into nodes
Working with metadata to improve the context
Estimating the potential cost of using metadata extractors
Preserving privacy with metadata extractors, and not only
Using the ingestion pipeline to increase efficiency
Handling documents that contain a mix of text and tabular data
Hands-on β ingesting study materials into our PITS
Summary
Chapter 5: Indexing with LlamaIndex
Technical requirements
Indexing data β a birdβs-eye view
Understanding the VectorStoreIndex
Persisting and reusing Indexes
Exploring other index types in LlamaIndex
Building Indexes on top of other Indexes with ComposableGraph
Estimating the potential cost of building and querying Indexes
Indexing our PITS study materials β hands-on
Summary
Part 3: Retrieving and Working with Indexed Data
Chapter 6: Querying Our Data, Part 1 β Context Retrieval
Technical requirements
Learning about query mechanics β an overview
Understanding the basic retrievers
Building more advanced retrieval mechanisms
Understanding the concepts of dense and sparse retrieval
Summary
Chapter 7: Querying Our Data, Part 2 β Postprocessing and Response Synthesis
Technical requirements
Re-ranking, transforming, and filtering nodes using postprocessors
Understanding response synthesizers
Implementing output parsing techniques
Building and using query engines
Hands-on β building quizzes in PITS
Summary
Chapter 8: Building Chatbots and Agents with LlamaIndex
Technical requirements
Understanding chatbots and agents
Implementing agentic strategies in our apps
Hands-on β implementing conversation tracking for PITS
Summary
Part 4: Customization, Prompt Engineering, and Final Words
Chapter 9: Customizing and Deploying Our LlamaIndex Project
Technical requirements
Customizing our RAG components
Using advanced tracing and evaluation techniques
Introduction to deployment with Streamlit
HANDS-ON β a step-by-step deployment guide
Summary
Chapter 10: Prompt Engineering Guidelines and Best Practices
Technical requirements
Why prompts are your secret weapon
Understanding how LlamaIndex uses prompts
Customizing default prompts
The golden rules of prompt engineering
Summary
Chapter 11: Conclusion and Additional Resources
Other projects and further learning
Key takeaways, final words, and encouragement
Summary
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book
π SIMILAR VOLUMES
Solve real-world problems easily with artificial intelligence (AI) using the LlamaIndex data framework to enhance your LLM-based Python applications Key Features β’ Examine text chunking effects on RAG workflows and understand security in RAG app development β’ Discover chatbots and agents and le
<p><span>Learn end-to-end automation testing techniques for web and mobile browsers using Selenium WebDriver, AppiumDriver, Java, and TestNG</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Explore the Selenium grid architecture and build your own grid for browser and mobile devices</
Learn all the features and best practices of FastAPI to build, deploy, and monitor powerful data science and AI apps, like object detection or image generation. Purchase of the print or Kindle book includes a free PDF eBook Key Features Uncover the secrets of FastAPI, including async I/O, type hi
Applied ADO.NET: Building Data-Driven Solutions provides extensive coverage of ADO.NET technology, including ADO.NET internals, namespaces, classes, and interfaces. Whereas most books cover only the SQL and OLE DB data providers, authors Mahesh Chand and David Talbot detail the SQL, OLE DB, and ODBC
<p><p><i>Applied ADO.NET: Building Data-Driven Solutions</i> provides extensive coverage of ADO.NET technology, including ADO.NET internals, namespaces, classes, and interfaces. Whereas most books cover only the SQL and OLE DB data providers, authors <strong>Mahesh Chand</strong> and <strong>David T