Files
nexus/wiki/concepts/Prompt-Engineering.md
2026-04-20 00:02:56 +08:00

1.2 KiB
Raw Blame History

title, type, tags, date
title type tags date
Prompt Engineering concept
AI
Prompt-Engineering
LLM
2024-11-12

Summary

提示词工程Prompt Engineering是创建、设计和优化提示词以引导大语言模型LLM响应的过程确保输出的准确性和相关性。

Definition

Prompt Engineering提示词工程是指通过精心设计提示词来提升 AI 输出质量的技术,涵盖需求拆解、结构化表达、场景共情、迭代优化四个维度。

Key Components

提示词由以下组件构成:

  • 指令Instructions:明确告诉模型要做什么
  • 上下文Context:提供背景信息
  • 用户输入User Input:具体问题或任务
  • 输出指示器Output Indicator:提示模型输出格式

Basic Techniques

  • One-shot Prompting:提供一个示例
  • Few-shot Prompting:提供多个示例
  • Chain of Thoughts:提供逐步思考过程

Connections

  • LLM ← guides ← Prompt Engineering提示词工程引导大语言模型
  • Generative AI ← uses ← Prompt Engineering生成式 AI 应用提示词工程
  • Claude Skills ← relies_on ← Prompt EngineeringClaude Skills 基于提示词工程技术