Skip to Content
러닝 랭체인
book

러닝 랭체인

by 메이오 오신, 누노 캄포스, 강민혁
May 2025
Beginner to intermediate
400 pages
7h 31m
Korean
Hanbit Media, Inc.
Content preview from 러닝 랭체인
114
러닝 랭체인
03
CHAPTER
RAG
2
단계: 데이터 기반 대화
2
장에서는 데이터를 처리하고 임베딩을 생성해 벡터 저장소에 저장하는 방법을 배웠다. 이
번 장에서는 사용자의 질의를 바탕으로 가장 연관성 높은 임베딩과 청크를 효율적으로 검색
하는 방법을 설명한다. 이를 통해 관련 문서를 컨텍스트로 활용한 프롬프트를 구성해
LLM
최종 출력 정확도를 향상시킬 수 있다.
사용자 질의를 임베딩하고 데이터 소스에서 유사 문서를 검색한 후, 이를 프롬프트에 컨텍스
트로 활용하는 과정을
검색 증강 생성
retrieval
-
augmented
generation
(
RAG
)이라 부른다.
RAG
는 채팅
LLM
애플리케이션 구축에 필수적인 구성 요소로 정확하고 효율적이며 최신 정보를 제공한
다. 이번 장에서는 기초부터 심화까지 단계별로 안내해, 벡터 저장소와 데이터베이스 등 다
양한 데이터 소스 및 구조화와 비구조화 데이터를 활용한 효과적인
RAG
시스템 구축 방법을
다룬다. 먼저
RAG
의 개념을 정립하고 그 장점을 살펴보자.
3.1
RAG
시작하기
RAG
는 외부 자료에서 얻은 컨텍스트를 제공해
LLM
의 생성 정확도를 높이는 기법이다. 해
당 용어는 메타
Meta
AI
연구진의 논문에서 처음 제시됐으며,
RAG
기법을 적용해 훈련한 모델
115
3
RAG 2단계: 데이터 기반 대화
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

타입스크립트 프로그래밍

타입스크립트 프로그래밍

Boris Czerny, U Jung Eun
러닝 타입스크립트

러닝 타입스크립트

조시 골드버그

Publisher Resources

ISBN: 9791169213783