【笔记】提示工程 #48
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#48
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
提示词:
提示工程:也叫「指令工程」
管理环境变量:
pip install python-dotenv
提示工程基础
构成要素
好的prompt结构对于设计有效的AI交互至关重要(简而言之:具体、丰富、少歧义)
通用技巧
提示工程进阶
样本提示
区别的本质在于上下文的多寡,上下文越多,得到的回答越精准
- 没有例子,只有任务描述
- 虽然大型语言模型展示了惊人的零样本能力,但在使用零样本设置时,它们在更复杂的任务上仍然表现不佳
- 有少量的例子,上下文更丰富,回答更准确
- 少样本提示可以作为一种技术,以启用上下文学习,我们在提示中提供演示以引导模型实现更好的性能
思维链
自我一致性
思维树