Skip to Content
실무로 통하는 LLM 애플리케이션 설계
book

실무로 통하는 LLM 애플리케이션 설계

by 수하스 파이, 박조은
October 2025
Intermediate
424 pages
10h 19m
Korean
Hanbit Media, Inc.
Content preview from 실무로 통하는 LLM 애플리케이션 설계
383
12
검색 증강 생성(RAG)
문서의 각 문장에 대한 임베딩을 생성함으로써 수행됩니다. 임베딩 공간에서 입력 질의와 가장
유사한 상위
k
개 문장이 요약으로 선택됩니다. 임베딩 거리는
LLM
이 올바른 출력을 생성하게
하는 데 있어서 해당 문장이 얼마나 효과적인지를 측정합니다.
추출 요약기는
11
장에서 알아본 대조 학습으로 훈련됩니다. 대조 학습의 각 훈련 예시는 앵커
문장, 앵커 문장과 유사한 긍정 예시, 앵커 문장과 다른 부정 예시로 구성됩니다. 훈련 예시를
생성하기 위해, 검색된 문서의 각 문장을 입력 질의 앞에 프리픽스로 붙이고 정답 출력 토큰이
생성될 확률인 가능도를 계산합니다. 가능도가 가장 높은 문장을 긍정 예시로 취합니다. 부정
예시로는 가능도가 임곗값 아래인 최대
5
개의 문장을 선택합니다. 이 데이터셋이 모델을 훈련
하는 데 사용됩니다.
생성적 요약에서는 더 큰
LLM
을 증류할 수 있습니다. 즉, 큰
LLM
의 출력을 사용해 더 작은
LLM
을 파인 튜닝합니다.
훈련 데이터셋을 생성하려면 몇 가지 프롬프트 템플릿을 구성하고 이를 큰
LLM
과 함께 사용해
검색된 문서들의 제로샷 요약을 생성할 수 있습니다. 모든 검색된 문서의 단일 요약을 생성한
다는 점에 주목하세요. 추출 요약 기법과 유사하게, 생성된 각 요약을 입력 텍스트 앞에 프리픽 ...
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

What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux
Relational Power Is the New Currency of Hybrid Work

Relational Power Is the New Currency of Hybrid Work

Lebene Soga, Yemisi Bolade-Ogunfodun, Nazrul Islam, Joseph Amankwah-Amoah

Publisher Resources

ISBN: 9791169214384