프롬프트 엔지니어링이란
프롬프트 엔지니어링은 대규모 언어 모델(LLM)에서 원하는 출력을 얻기 위해 효과적인 프롬프트를 설계하는 기술입니다.
프롬프트 엔지니어링은 특정하고, 정확하며, 관련성 있는 응답을 얻기 위해 입력 텍스트(프롬프트)를 제작하는 것을 포함합니다. 여기에는 모델의 성능을 최적화하기 위해 다양한 프롬프트 구조, 키워드 및 제약 조건을 실험하는 것이 포함됩니다. 효과적인 프롬프트 엔지니어링은 콘텐츠 생성에서 질문 응답에 이르기까지 다양한 애플리케이션에서 LLM의 기능을 활용하는 데 매우 중요합니다.
이는 실험과 개선이 필요한 반복적인 프로세스입니다. 목표는 다양한 프롬프트 디자인이 모델의 출력에 어떤 영향을 미치는지 이해하고, 원하는 결과를 일관되게 달성하는 프롬프트를 개발하는 것입니다. 이 분야는 LLM이 더욱 정교해짐에 따라 끊임없이 발전하고 있습니다.
graph LR
Center["프롬프트 엔지니어링이란"]:::main
Pre_natural_language_processing["natural-language-processing"]:::pre --> Center
click Pre_natural_language_processing "/terms/natural-language-processing"
Rel_hallucination_ai["hallucination-ai"]:::related -.-> Center
click Rel_hallucination_ai "/terms/hallucination-ai"
Rel_chain_of_thought["chain-of-thought"]:::related -.-> Center
click Rel_chain_of_thought "/terms/chain-of-thought"
Rel_generative_ai_agents["generative-ai-agents"]:::related -.-> Center
click Rel_generative_ai_agents "/terms/generative-ai-agents"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 지식 테스트
🧒 5살도 이해할 수 있게 설명
🪄 The art of giving clear, specific instructions to an AI so it does exactly what you need.
🤓 Expert Deep Dive
## Prompt Chaining: Building AI Workflows
Instead of asking an LLM to 'write a 3000-word research report' in one go (which often results in shallow content), expert prompters use Prompt Chaining.
1. Prompt 1: Generate a detailed outline.
2. Prompt 2: Write Section A based on the outline.
3. Prompt 3: Critique Prompt 2 for factual errors.
4. Prompt 4: Rewrite Section A using the critique.
This modular approach ensures the model remains within its 'context window' efficiency and maintains high quality across large tasks.