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

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

by 발리아파 락슈마난, 하네스 하프케, 류광
April 2026
Intermediate
592 pages
13h 28m
Korean
Hanbit Media, Inc.
Content preview from 에이전트 시대의 AI 시스템 설계
233
4
장
지식 추가: 고급
중의성 해소
때로는 쿼리에 여러 의미를 가진 용어가 사용되기도 한다. 앞에서 언급한
그랜드 캐니언
이 좋은
예이다. 중의성 문제를 해결하려면 우선 중의성이 있는지부터 판단해야 한다. 이를 위해, 다음
처럼 검색된 노드들이 모두 동일한 개체를 참조하는지
LLM
에게 묻는다.
@dataclass
class DisambiguationResult:
is_ambiguous: bool
ambiguous_term: str
possibility_1: str
possibility_2: str
def disambiguate(query, node1, node2):
system_prompt = """
쿼리와 그에 대한 답변의 기반이 될 검색된 구절 두 개가 주어집니다.
두 구절이 서로 다른 개체를 동일한 용어로 지칭하는지 판단하세요.
예를 들어 쿼리가 "레드 리버"에 관한 것일 때, 한 구절은 미네소타의 레드 리버에
관한 것이고 다른 구절은 오클라호마/텍사스 경계에 있는 레드 리버에 관한 것일 수
있습니다.
두 구절에 중의성이 없다면 is_ambiguous에 False를 반환하세요.
"""
agent = Agent(model,
result_type=DisambiguationResult,
system_prompt=system_prompt) ...
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