
A practical guide to building a simple RAG system.
Description
Book Introduction
From the basic concepts of LLM to building and deploying AI services
The Complete RAG Roadmap in One Volume
This book explains the concepts and principles of the RAG system based on the Langchain framework in an easy-to-understand manner even for beginners.
We also cover in detail what each component of the system does and how it can be better utilized.
In particular, in the last chapter, you will complete a 'RAG System Construction Practical Project' based on the theory and practice learned so far, and it is designed to increase your overall understanding of RAG and enable you to apply it directly in practice.
The Complete RAG Roadmap in One Volume
This book explains the concepts and principles of the RAG system based on the Langchain framework in an easy-to-understand manner even for beginners.
We also cover in detail what each component of the system does and how it can be better utilized.
In particular, in the last chapter, you will complete a 'RAG System Construction Practical Project' based on the theory and practice learned so far, and it is designed to increase your overall understanding of RAG and enable you to apply it directly in practice.
- You can preview some of the book's contents.
Preview
index
CHAPTER 01 - LLM Overview
1.1 LLM, the driving force behind the generative AI craze
__Rules-Based Natural Language Processing, ELIZA, the First AI Chatbot
__Statistics-based natural language processing, the emergence of N-grams
__Advances in Deep Learning and NLP: CNN, RNN, and LSTM
__Language Model Innovation, Transformer
__Scale is all you need, the beginning of LLM
1.2 The Two Major Mountains of LLM Development: Open Source LLM and Closed LLM
__Choosing the right LLM is key to AI services
__Open Source LLM vs. Closed LLM
__Global Open Source LLM Ecosystem
__Domestic open source LLM ecosystem
1.3 LLM Utilization Status at a Glance
Perplexity, a generative AI-based conversational search service
__Marketing AI Copilot, Jasper
Zapier Makes Automation Easier with AI
__All-Weather CRM Copilot, Salesforce's Einstein
GitHub Copilot: The Essential AI Coding Tool for Developers
Easy and Fast Data Analysis with Tableau AI
__Adobe Firefly: A Tool That Makes Anyone a Designer
CHAPTER 02 - GETTING CLOSE WITH RAG
2.1 What is the RAG system?
__LLM's greatest weakness is hallucinations
__Context window limitation issue
__LLM API's amnesia problem
__The emergence of RAG, which overcomes hallucinations
2.2 RAG vs. Fine Tuning
CHAPTER 03 - GETTING STARTED WITH THE LLM
3.1 What is a Langchain?
__Concept and components of the Langchain
ChatPDF, a service built with __RangeChain
3.2 Using LLM through Langchain
__Basics of LLM API calls
Three forms of __prompts
Understanding Temperature in __LLM
__Streaming replies like ChatGPT
__Get faster responses by caching responses
3.3 Prompt Template for more convenient prompt input
__PromptTemplate and ChatPromptTemplate
__Prompt Template with Fewshot Example
__Partial prompt template that enables partial processing
3.4 Output Parser to format LLM's answers to your desired format
__CSV parser that outputs a comma-separated list
__Datetime parser that outputs only date format
__JSON parser for basic format of system communication
CHAPTER 04 - Handling Various Documents with RAG
4.1 Understanding Document Loaders
Understanding the Document Object for __RAG
4.2 Importing PDF files into Document
__PyPDFLoader
__PyPDFium2
__Comparison of PyPDFLoader and PyPDFium2 processing times
__PDF Loader Comparison
4.3 Importing multiple files into a document
__Import Word files, Docx2txtLoader
__Load CSV file, csv_loader
__Loading PPT files, UnstructuredPowerPointLoader
__Loading Internet Information, WebBaseLoader
__Load all files within a specific path, DirectoryLoader
4.4 Text Splitters for cutting documents in various ways
__Vector DB storage process
__Text Splitters that split documents into appropriate sizes
CharacterTextSplitter splits text by the number of characters
__RecursiveCharacterTextSplitter that splits text recursively
SemanticChunker, which segments by understanding the context
CHAPTER 05 - Utilizing RAG
5.1 Text embedding to convert text to numbers
__What is an embedding model?
__Open source and closed source
5.2 Document Vector Stores
__Types of vector DB
__What is Chroma DB?
__Chroma DB document storage and similar document search
Document management using __Chroma DB API
5.3 RAG's Document Finder, Retriever
__Vector DB-based Retriever
__MultiQueryRetriever, which reinterprets and searches the user's query
MultiVectorRetriever, which reinterprets a document into multiple vectors
Long-Context Reorder, which rearranges contexts
5.4 LCEL, a language for expressing rank chains
__Easy code writing and effective module management
__Configure the basic chain with LCEL
__stream() to easily add streaming functionality
__batch() to request and receive multiple APIs
5.5 Building a Basic RAG System
Building a __RAG System 1 - Configuring a Basic QA Chain
Building a __RAG System 2 - Building Memory Functions
__Building RAG with Open Source LLM
CHAPTER 06 - Mastering RAG
6.1 Creating a RAG Chatbot with Streamlit
Running __Streamlit
__Streamlit chat feature settings
6.2 Adding a conversation feature
6.3 Implementing the File Upload Function
6.4 Complete the RAG Chatbot by Adding Advanced Features
6.5 Deploying with Streamlit
__Application Preparation
__Setting up GitHub
__Deploying with Streamlit Cloud
6.6 Beyond the Limits of LLM, Tool & Agent
__Step-by-step inference CoT and ReAct
Building an Internet Search Agent with __Rangchain
__Completing a Vector DB and Internet Search Agent with Rank Chain
1.1 LLM, the driving force behind the generative AI craze
__Rules-Based Natural Language Processing, ELIZA, the First AI Chatbot
__Statistics-based natural language processing, the emergence of N-grams
__Advances in Deep Learning and NLP: CNN, RNN, and LSTM
__Language Model Innovation, Transformer
__Scale is all you need, the beginning of LLM
1.2 The Two Major Mountains of LLM Development: Open Source LLM and Closed LLM
__Choosing the right LLM is key to AI services
__Open Source LLM vs. Closed LLM
__Global Open Source LLM Ecosystem
__Domestic open source LLM ecosystem
1.3 LLM Utilization Status at a Glance
Perplexity, a generative AI-based conversational search service
__Marketing AI Copilot, Jasper
Zapier Makes Automation Easier with AI
__All-Weather CRM Copilot, Salesforce's Einstein
GitHub Copilot: The Essential AI Coding Tool for Developers
Easy and Fast Data Analysis with Tableau AI
__Adobe Firefly: A Tool That Makes Anyone a Designer
CHAPTER 02 - GETTING CLOSE WITH RAG
2.1 What is the RAG system?
__LLM's greatest weakness is hallucinations
__Context window limitation issue
__LLM API's amnesia problem
__The emergence of RAG, which overcomes hallucinations
2.2 RAG vs. Fine Tuning
CHAPTER 03 - GETTING STARTED WITH THE LLM
3.1 What is a Langchain?
__Concept and components of the Langchain
ChatPDF, a service built with __RangeChain
3.2 Using LLM through Langchain
__Basics of LLM API calls
Three forms of __prompts
Understanding Temperature in __LLM
__Streaming replies like ChatGPT
__Get faster responses by caching responses
3.3 Prompt Template for more convenient prompt input
__PromptTemplate and ChatPromptTemplate
__Prompt Template with Fewshot Example
__Partial prompt template that enables partial processing
3.4 Output Parser to format LLM's answers to your desired format
__CSV parser that outputs a comma-separated list
__Datetime parser that outputs only date format
__JSON parser for basic format of system communication
CHAPTER 04 - Handling Various Documents with RAG
4.1 Understanding Document Loaders
Understanding the Document Object for __RAG
4.2 Importing PDF files into Document
__PyPDFLoader
__PyPDFium2
__Comparison of PyPDFLoader and PyPDFium2 processing times
__PDF Loader Comparison
4.3 Importing multiple files into a document
__Import Word files, Docx2txtLoader
__Load CSV file, csv_loader
__Loading PPT files, UnstructuredPowerPointLoader
__Loading Internet Information, WebBaseLoader
__Load all files within a specific path, DirectoryLoader
4.4 Text Splitters for cutting documents in various ways
__Vector DB storage process
__Text Splitters that split documents into appropriate sizes
CharacterTextSplitter splits text by the number of characters
__RecursiveCharacterTextSplitter that splits text recursively
SemanticChunker, which segments by understanding the context
CHAPTER 05 - Utilizing RAG
5.1 Text embedding to convert text to numbers
__What is an embedding model?
__Open source and closed source
5.2 Document Vector Stores
__Types of vector DB
__What is Chroma DB?
__Chroma DB document storage and similar document search
Document management using __Chroma DB API
5.3 RAG's Document Finder, Retriever
__Vector DB-based Retriever
__MultiQueryRetriever, which reinterprets and searches the user's query
MultiVectorRetriever, which reinterprets a document into multiple vectors
Long-Context Reorder, which rearranges contexts
5.4 LCEL, a language for expressing rank chains
__Easy code writing and effective module management
__Configure the basic chain with LCEL
__stream() to easily add streaming functionality
__batch() to request and receive multiple APIs
5.5 Building a Basic RAG System
Building a __RAG System 1 - Configuring a Basic QA Chain
Building a __RAG System 2 - Building Memory Functions
__Building RAG with Open Source LLM
CHAPTER 06 - Mastering RAG
6.1 Creating a RAG Chatbot with Streamlit
Running __Streamlit
__Streamlit chat feature settings
6.2 Adding a conversation feature
6.3 Implementing the File Upload Function
6.4 Complete the RAG Chatbot by Adding Advanced Features
6.5 Deploying with Streamlit
__Application Preparation
__Setting up GitHub
__Deploying with Streamlit Cloud
6.6 Beyond the Limits of LLM, Tool & Agent
__Step-by-step inference CoT and ReAct
Building an Internet Search Agent with __Rangchain
__Completing a Vector DB and Internet Search Agent with Rank Chain
Detailed image

Publisher's Review
Starting from the basics of LLM
Langchain Practical Guide!
The AI field is changing so rapidly that it requires technology and guidance that is actually being used in businesses.
This book draws on the extensive experience of a practicing AI consultant and expert AI application developer. It offers an accessible curriculum, accessible even to those new to the LLM program, and contains practical know-how for building Langchain systems. Covering a variety of LLM case studies and advanced Langchain methodologies, you can build a high-quality RAG system.
★What you can learn from this book★
* LLM utilization through LangChain: Language Models, Prompt Template, Output Parser
* Various document processing using RAG: Document Loaders, Text Splitters
* RAG Practical Project Practice: Embedding, Vector DB, Retriever, LCEL, Chains, Memory
* RAG System Construction and Deployment: Streamlit, Ollama, Tool & AI Agents
* Other models used include Langchain, OpenAI, Claude, GPT-4o, and Hugging Face!
★Readers Who Need This Book★
* Aspiring developers who are looking to develop AI using Langchain while completing the basics of LLM.
* Current developers who want to integrate the latest AI creation technology and projects into their services
* Anyone who wants to practice various model APIs and apply them to real projects!
Langchain Practical Guide!
The AI field is changing so rapidly that it requires technology and guidance that is actually being used in businesses.
This book draws on the extensive experience of a practicing AI consultant and expert AI application developer. It offers an accessible curriculum, accessible even to those new to the LLM program, and contains practical know-how for building Langchain systems. Covering a variety of LLM case studies and advanced Langchain methodologies, you can build a high-quality RAG system.
★What you can learn from this book★
* LLM utilization through LangChain: Language Models, Prompt Template, Output Parser
* Various document processing using RAG: Document Loaders, Text Splitters
* RAG Practical Project Practice: Embedding, Vector DB, Retriever, LCEL, Chains, Memory
* RAG System Construction and Deployment: Streamlit, Ollama, Tool & AI Agents
* Other models used include Langchain, OpenAI, Claude, GPT-4o, and Hugging Face!
★Readers Who Need This Book★
* Aspiring developers who are looking to develop AI using Langchain while completing the basics of LLM.
* Current developers who want to integrate the latest AI creation technology and projects into their services
* Anyone who wants to practice various model APIs and apply them to real projects!
GOODS SPECIFICS
- Date of issue: October 30, 2024
- Page count, weight, size: 278 pages | 170*232*20mm
- ISBN13: 9791193083239
- ISBN10: 1193083230
You may also like
카테고리
korean
korean