Skip to Content
에이전트 시대의 AI 시스템 설계
book

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

by 발리아파 락슈마난, 하네스 하프케, 류광
April 2026
Intermediate
592 pages
13h 28m
Korean
Hanbit Media, Inc.
Content preview from 에이전트 시대의 AI 시스템 설계
479
8
장
제약 조건 해결
6YfI8
) 같은 인기 있는 오픈 소스
LLM
인퍼런스 서버도 지원한다. 사실 자동 접두어 캐싱을
최초로 지원한 것이 바로
vLLM
이다.
시스템 프롬프트
프롬프트 캐시
LLM
이 초기 상태를
활용해서 응답을
생성한다.
사용자 프롬프트
초기 모델 상태
응답
그림
8-6
알려진 시스템 프롬프트에 대한 초기
LLM
상태 로딩
서버 쪽 캐싱의 또 다른 옵션은
컨텍스트 캐싱
context
caching
이다. 많은 비즈니스 애플리케이션에
서 사용자는
LLM
에 텍스트 프롬프트와 함께 동영상, 이미지, 문서 같은 추가 컨텍스트를 제출
하는데, 그런 데이터를 캐싱하는 것이 컨텍스트 캐싱이다. 예를 들어 제미나이는 멀티미디어
콘텐츠를 캐싱하고 후속 요청에 재사용하는 방법을 제공한다 (
https
://
oreil
.
ly
/
Q0Soc
).
8.2.3
예제
서버 쪽 캐싱은 모델 제공업체나
LLM
인퍼런스 서버에 의해 암묵적으로 제공되므로, 여기서는
클라이언트 쪽 구현에 집중하고자 한다. 클라이언트 쪽 캐싱의 주된 목적은
LLM
에 대한 전체
요청을 줄여 인퍼런스 비용과 지연시간을 줄이는 것이다.
이 예제에서는 주어진 프롬프트에 대한 모델의 응답을 디스크에
JSON
형식으로 저장한다. 간
결함을 위해 레디스 같은
KV
데이터베이스는 사용하지 않는다. 대신 프롬프트의 해시를 계산 ...
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

메타데이터 관리의 기본 원칙

메타데이터 관리의 기본 원칙

Ole Olesen-Bagneux
그림으로 배우는 생성형 AI

그림으로 배우는 생성형 AI

프리양카 베르가디아, 발리아파 락슈마난
잘되는 머신러닝 팀엔 이유가 있다

잘되는 머신러닝 팀엔 이유가 있다

데이비드 탄, 에이다 양, 데이비드 콜스

Publisher Resources

ISBN: 9791175790490