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

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

by 발리아파 락슈마난, 하네스 하프케, 류광
April 2026
Intermediate
592 pages
13h 28m
Korean
Hanbit Media, Inc.
Content preview from 에이전트 시대의 AI 시스템 설계
171
3
장
지식 추가: 기본
# 지시사항
messages = [
ChatMessage(
role="system",
content="다음 텍스트를 이용해서 주어진 질문에 답하세요."
)
]
# 컨텍스트
messages += [
ChatMessage(role="system", content=node.text) for node in retrieved_nodes
]
# 쿼리
messages += [
ChatMessage(role="user", content=query)
]
첫 메시지는 지시사항
instruction
이고 중간 메시지들은 컨텍스트에 해당한다. 마지막 메시지가
LLM
이 궁극적으로 답해야 할 쿼리이다. 이제 이 메시지들을 다음과 같이
LLM
에 보낸다.
llm = Anthropic(
model="claude-sonnet-4-5",
api_key=os.environ['ANTHROPIC_API_KEY'],
temperature=0.2
)
response = llm.chat(messages)
이에 대해 이런 답변이 돌아왔다.
텍스트에 따르면, 알렉산더와 디오게네스는 짧지만 주목할 만한 교류를 가졌다. 알렉산더
가 디오게네스를 만났을 때 디오게네스는 어떤 호의나 선물을 요구하는 대신 알렉산더와
그의 수행원들에게 "햇빛을 가리지 말고 비켜달라"고 간단히 요청했다. 알렉산더는 ...
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