Skip to Content
그림으로 배우는 생성형 AI
book

그림으로 배우는 생성형 AI

by 프리양카 베르가디아, 발리아파 락슈마난, 류광
April 2026
Intermediate
348 pages
8h 22m
Korean
Hanbit Media, Inc.
Content preview from 그림으로 배우는 생성형 AI
26 4
그림으로 배우는 생성형 AI
5.3 저위험 상황 을 위한 아키텍처
환각
,
독성
,
부정확성과 관련한 위험 수준이 낮은 생
성형
AI
애플리케이션을 구축할 때는 필요한 창의성
수준에 따라 매번 응답을 생성하거나
,
캐싱을 사용하
거나
,
더 작은 언어 모델을 사용하는 것 중에서 선택
할 수 있습니다
(
그림
5
-
9
).
5.3.1 매번 생성
이것은 기본값에 해당하는 아키텍처 패턴입니다
.
생
성된 콘텐츠가 필요할 때마다 배포된
LLM
의
API
를
호출하는 방식으로
,
아주 단순하지만 매번
LLM
을 호
출하게 됩니다
.
일반적으로 이 아키텍처에서는 실행 시점에서 매개변
수를 기반으로
LLM
에 보내는 프롬프트를 템플릿화합
니다
.
필요에 따라
LLM
을 교체할 수 있는 프레임워크
를 사용하는 것이 바람직합니다
.
예를 들어
LLM
에게 감사 편지를 생성하게 한다고 합
시다
.
다음은 랭체인을 이용한 코드입니다
(
전체 코
드는 이번 장 디렉터리의
architectural_patterns.
ipynb
의 섹션
1
에 있습니다
).
prompt_template = \
PromptTemplate.from_template(
"""
당신은 임원 {sender_name}의 AI 비서로
서 임원을 대신해서 편지를 작성합니다.
{recipient_name}님께 {reason_for_
thanks}에 관한 3-5문장 분량의 감사 ...
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

만들면서 배우는 생성 AI

만들면서 배우는 생성 AI

데이비드 포스터
에이전트 시대의 AI 시스템 설계

에이전트 시대의 AI 시스템 설계

발리아파 락슈마난, 하네스 하프케
자바 개발자를 위한 데브옵스 툴

자바 개발자를 위한 데브옵스 툴

스티븐 친, 멜리사 맥케이, 익스헬 루이츠, 바루크 사도구르스키

Publisher Resources

ISBN: 9791175790476