Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: 严灿平

《基于大模型的RAG应用开发与优化——构建企业级LLM应用》是一本全面介绍基于大语言模型的RAG应用开发的专业图书。本书共分为3篇:预备篇、基础篇和高级篇。预备篇旨在帮助你建立起对大模型与RAG的基本认识,并引导你搭建起RAG应用开发的基础环境;基础篇聚焦于经典RAG应用开发的核心要素与阶段,介绍关键模块的开发过程,剖析相关的技术原理,为后面的深入学习打下坚实的基础;高级篇聚焦于RAG应用开发的高阶模块与技巧,特别是在企业级RAG应用开发中的优化策略与技术实现,并探索了一些新型的RAG工作流与范式,旨在帮助你了解最新的RAG应用技术发展,掌握RAG应用的全方位开发能力。 《基于大模型的RAG应用开发与优化——构建企业级LLM应用》适合对大模型及RAG技术感兴趣的开发者、研究人员、产品经理及希望了解并掌握RAG应用开发能力的人阅读。无论你是进入AI领域的初学者,还是已经有一定基础的进阶者,都能从本书中找到适合自己的内容。

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical, three-part guide for developers who want to move beyond RAG prototypes and build production-ready, enterprise-grade LLM applications using Python and LlamaIndex—covering everything from core concepts to advanced optimization techniques. 【Book Arc】 - **Opening (~0%–33%)**: Introduces large language models and RAG fundamentals, explains why RAG matters, and walks through the classic RAG architecture and its challenges. Also covers environment setup—hardware, base models, embedding models, vector databases, and the LlamaIndex framework—so readers can start coding immediately. - **Early (~33%–67%)**: Dives into hands-on RAG development, starting with the simplest possible RAG app built three ways (native code, LlamaIndex, LangChain). Covers debugging and tracing with tools like LlamaDebugHandler, then systematically explores core components: LLM integration, Prompt engineering, and model parameter tuning. - **Late (~67%–100%)**: Focuses on advanced modules and enterprise-grade optimization strategies—improving retrieval accuracy, handling diverse data formats, managing response quality, and addressing performance bottlenecks. Explores emerging RAG workflows and paradigms beyond the classic pattern. - **Ending (~100%)**: Concludes with a look at novel RAG architectures and future directions, emphasizing how the principles learned apply across different frameworks and languages, not just the Python/LlamaIndex stack used in examples. 【Key Takeaways】 - **RAG bridges the gap between LLM limitations and real-world needs** (Early): RAG solves problems like outdated knowledge, hallucination, and lack of domain specificity by retrieving relevant information before generation—making it a practical alternative to fine-tuning for many use cases. - **Prototype-to-production is a massive leap** (Early): A demo RAG app built in minutes differs hugely from a production system; real challenges include diverse data formats, inaccurate retrieval, inconsistent model outputs, unpredictable user queries, and end-to-end latency issues. - **LlamaIndex is the primary framework, but principles are universal** (Early): The book uses Python and LlamaIndex for all examples, yet the underlying RAG concepts, architecture patterns, and optimization methods transfer to any language or framework. - **Environment setup is a critical foundation** (Early): Success depends on properly configuring hardware, selecting base and embedding models, setting up Python virtual environments, choosing vector databases, and integrating the LlamaIndex framework correctly. - **Multiple development paths exist for RAG apps** (Middle): Developers can choose between low-code platforms for rapid prototyping or framework-based development (LlamaIndex, LangChain) for more control and customization—each with distinct trade-offs. - **Debugging and tracing are essential for production readiness** (Middle): Tools like LlamaDebugHandler and third-party tracing platforms help developers understand what's happening inside their RAG pipeline, which is crucial for diagnosing and fixing issues. - **Model and Prompt components are the heart of RAG quality** (Middle): Understanding how to configure LLM parameters, integrate model components, and craft effective prompts directly determines output quality and application reliability. - **Enterprise optimization requires systematic approaches** (Late): Moving to production demands strategies for handling data complexity, improving retrieval precision, stabilizing model outputs, and optimizing end-to-end performance—topics the book addresses in depth. 【Reading Tips】 - **Skim the opening chapters (1–2) if you're already familiar with LLMs**: The foundational concepts and environment setup are valuable but may be review for experienced AI developers; focus on the architecture evolution and RAG-vs-fine-tuning discussions. - **Deep-read Chapter 3 for hands-on learning**: The three-way comparison (native code vs. LlamaIndex vs. LangChain) is invaluable for understanding what frameworks actually do for you—code along to internalize the differences. - **Pay special attention to debugging and tracing sections**: These are often overlooked but are the difference between hobby projects and production systems; mastering LlamaDebugHandler early will save you hours later. - **Treat the advanced section as a reference, not a linear read**: When you hit a specific production problem (retrieval accuracy, latency, data diversity), jump to the relevant optimization chapter rather than reading sequentially. - **Note the framework-agnostic principles**: Even if you prefer LangChain or another framework, extract the architectural patterns and optimization strategies—they'll transfer directly to your stack of choice. 【Coverage Limits】 This guide is based on the book's table of contents, preface, and introductory material; detailed technical content from the advanced chapters (retrieval optimization, specific workflow patterns) is not covered in the excerpts and therefore not summarized here.
Excerpt 1
书名: 基于大模型的RAG应用开发与优化——构建企业级LLM应用 (严灿平) (Z-Library) 作者: 严灿平 《基于大模型的RAG应用开发与优化——构建企业级LLM应用》是一本全面介绍基于大语言模型的RAG应用开发的专业图书。本书共分为3篇:预备篇、基础篇和高级篇。预备篇旨在帮助你建立起对大模型与RAG的...
View in text
Page 3
大模型应用世界并充满热情的开发者抛砖引玉,提供一份较为详尽的开发 RAG 应用的指南,助力他们在这次技术变革中乘风破浪。 本书的内容基于 AI 开发的首选语言 Python,并选择侧重于 RAG 领域的主流 开发框架 LlamaIndex 作为基础框架。两者丰富的工具资源和强大的社区支持,为 RAG 应用开发提供...
View in text
Excerpt 3
························································ 33 VI | 基于大模型的 RAG 应用开发与优化——构建企业级 LLM 应用 2.2.1 硬件环境建议 ··············································...
View in text
Page 6
使用 ················································· 83 4.1.5 了解与设置大模型的参数 ·············································· 84 4.1.6 自定义大模型组件 ··················...
View in text
Tags
AI categories
Artificial IntelligenceAIBackend
Publish Year: 2024
Language: Chinese
File Format: PDF
File Size: 27.6 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…