Skip to Content
GPT API를 활용한 인공지능 앱 개발(2판)
book

GPT API를 활용한 인공지능 앱 개발(2판)

by 올리비에 케일린, 마리 알리스 블레트, 이일섭, 박태환
December 2024
Beginner to intermediate
320 pages
7h 25m
Korean
Hanbit Media, Inc.
Content preview from GPT API를 활용한 인공지능 앱 개발(2판)
149
3
LLM 기반 애플리케이션 개발
3.4.5
프로젝트
5
: 문서 정리
이 프로젝트는
GPT
-
4o
의 자연어 처리 기능을 사용해 문서를 정리합니다. 명확하지 않은 구
조로 구성된 방대한 문서를 접한 적이 있을 겁니다. 문서에 새로운 내용이 추가되면 그 구조마
저 흐트러지는 경우도 있습니다.
이 프로젝트는
GPT
모델을 사용해 문서 분류 솔루션에 필요한 정보를 제공합니다. 문서는 날
짜, 작성자, 제목 등의 메타데이터를 포함할 수 있으며, 이를
GPT
-
4o
의 분석 결과와 결합할
수 있습니다. 다음과 같은 간단한 프롬프트를 작성하겠습니다.
예시
3-25
문서 정리 프롬프트
prompt = '''당신은 문서 정리원입니다.
문서를 분석하고, 주요 주제를 추출하고, 간단히 줄인 내용을 생성합니다.
정보는 JSON 형식을 사용해 제공하며, 다음 구조를 사용합니다.{
"topics": ["주요 주제 1", "주요 주제 2", "주요 주제 3"],
"summary": "문서의 요약"
}
'''
다른 도구에서 쉽게 파싱할 수 있는
JSON
형식으로 결과를 출력하는 걸 권장합니다. 이 예시
에서는 모든 문서가 모델의 최대 토큰 한도를 초과하지 않는다고 가정하고 내용을 바로 프롬프
트에 전달합니다.
예시
3-26
프롬프트에 문서 전달
response = client.chat.completions.create( ...
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

개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
GPT-4를 활용한 인공지능 앱 개발

GPT-4를 활용한 인공지능 앱 개발

올리비에 케일린, 마리 알리스 블레트

Publisher Resources

ISBN: 9791169213295