Skip to Content
AI 에이전트 엔지니어링
book

AI 에이전트 엔지니어링

by 마이클 알바다, 강민혁
January 2026
Intermediate
404 pages
7h 22m
Korean
Hanbit Media, Inc.
Content preview from AI 에이전트 엔지니어링
137
5
장
오케스트레이션
그림
5-3
시맨틱 도구 검색 및 호출 워크플로: 런타임에 사용자 쿼리를 임베딩하고 이를 사용해 벡터 데이터베이스에서
가장 관련성 높은 상위 도구를 검색합니다. 파운데이션 모델은 그중 적절한 도구를 선택하고 파라미터를 결정한 뒤 도구
를 호출하고 도구의 출력을 통합해 최종 사용자 응답을 생성합니다.
이 방식은 가장 일반적인 패턴으로 보통 표준 도구 선택보다 빠르고 성능도 우수하며 확장성도
충분히 좋습니다. 먼저 도구 설명을 임베딩해 도구 데이터베이스를 설정합니다. 전체 코드는
ch05
/
semantic
_
skill
_
selection
.
py
에서 확인할 수 있습니다.
import os
import requests
import logging
from langchain_core.tools import tool
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
from langchain_core.messages import HumanMessage, AIMessage, ToolMessage
from langchain.vectorstores import FAISS
import faiss
import numpy as np
# OpenAI 임베딩 초기화
embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY) ...
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 시각화

Priyanka Vergadia, Valliappa Lakshmanan

Publisher Resources

ISBN: 9791175790131