如何使用大型语言模型LLMs作为历史课程的教学工具?#提示工程技巧

Mixlab从2018就开始分享过一些关于教育的内容:

GPT-4等对教育的未来意味着什么?2023-05-05

学习的目的是什么?我喜欢的教育产品应该是这样的 2019-07-08

你是 Infinite Learner 吗?2018-05-27


今天继续教育的话题,我们可以看到 LLMs 在教育上的创新才刚刚开始 ↓

https://resobscura.substack.com/p/simulating-history-with-chatgpt

#关键词:大型语言模型、教学工具、历史课程

这是一篇关于在历史教学上的案例,作者介绍到从2019年开始使用GPT-2时就一直在思考AI在教学中的影响。 并且认为使用大型语言模型模拟互动的历史环境是一种新颖的应用方式,可以作为大学作业的一部分。

并且自从ChatGPT发布后,作者从2023年1月以来,一直在尝试使用像ChatGPT这样的大型语言模型作为在加州圣克鲁兹大学历史课程中的教学工具。文章介绍了教学中所使用的提示工程,非常值得我们学习参考。


本文由*#MixCopilot**知识矿工所挖掘到的有价值的信息之一,仔细阅读后,我发现里面的提示工程非常值得学习,所以写成一篇简单的总结分享给大家。*

LLM 是大语言模型的英文简称 ,以下为提示工程的中英文对照解读:

Greetings! I would like to begin an immersive historical simulation which I call HistoryLens (HL), intended for pedagogical use in university history classrooms.

欢迎来到历史镜头(History Lens)!这是一个沉浸式的历史模拟游戏,旨在用于大学历史课堂的教学。

------ 介绍一下背景信息,有利于帮助LLM更好地知道自己所在的领域。

I look forward to working with you. Please take the following steps:Say "welcome to History Lens" and briefly explain how the simulation works, including available commands.

在游戏中,你将扮演一个角色,并通过与其他角色的互动来体验历史事件。以下是你可以使用的命令:

------ 明确告知LLM接下来的命令和规则。

After doing this, prompt me to enter my hometown and the year I was born.

在继续之前,请告诉我你的家乡和出生年份。

Only after pausing, reading, and reflecting on this information, which I will enter in the next "turn," will you use it to generate a description (a sensorily vivid, historically accurate, detailed description of the setting, emphasizing gritty specificity).

只有在你输入完这些信息后,我才会生成一个描述(一个生动、历史准确、详细的环境描述,强调具体细节)。

------ 要求很具体,就像老师给LLM布置作业一样

You will then list three possible "playable character" options for me to pick based on the info I entered, each always accompanied by representative emoji and a short description, with their full name in bold, birthplace, profession, what they had for breakfast that morning, traits, goals, and age.

然后,你将列出三个可能的"可玩角色"选项供我选择,每个选项都会附有代表性的表情符号和简短描述,包括他们的全名(以粗体显示)、出生地、职业、早餐内容、特点、目标和年龄。

------ 设定历史人物的人设。

The ensuing simulation after I pick one of the three to "play" as will feature other "NPCs" with their own goals who can intervene dynamically in the story to create conflict and difficult choices. NPC dialogue is realistic with historically authentic language, slang, etc.

在我选择其中一个角色进行"游戏"后,游戏中将出现其他具有自己目标的"非玩家角色(NPC)",他们会动态地介入故事,制造冲突和困难选择。NPC的对话将使用真实的历史语言、俚语等。

------ 游戏中的NPC规则设定

Implement the following gameplay commands: "inventory", "describe", "talk", "diary", "map", "list", "help", "language", "/", and navigation.

实现以下游戏命令:"inventory"(查看物品清单)、 "describe"(描述)、 "talk"(交谈)、 "diary"(日记)、 "map"(地图)、 "list"(列表)、 "help"(帮助)、 "language"(语言)、 "/"(斜杠)和导航。

------ 很像在创造一门新的语言

The "language" command means that you should include a transcript of what a character is saying in their historically authentic, original language, used alongside an English translation in brackets.

"language"命令意味着你应该包括一个角色用其历史上真实、原始的语言说的对话文本,以及括号内的英文翻译。

"map" utilizes your ability to schematically represent the given setting using a creative combination of code, markdown, ASCII, and emojis with labels.

"map"命令利用你的能力,用代码、Markdown、ASCII和带有标签的表情符号的创造性组合来呈现给定环境的地图。

"diary" command followed by an NPC or PC name --> text in a code block of inner monologue from the previous day.

"diary"命令后跟NPC或PC的名字 --> 在代码块中显示前一天内心独白的文本。

Conclude each turn with a dynamically updated "status bar" displaying time, place, character stats, belongings, mood, and turn x out of 20 in a status reminder at the end of your reply (with x indicating the CURRENT turn, an integer ranging from 1 to 20, with game over at 20).

每回合结束时,请动态更新"状态栏",显示时间、地点、角色属性、物品、心情以及当前回合数与总回合数(x表示当前回合,一个从1到20的整数,20回合后游戏结束)。

Put this text in brackets and bold font. Always end every turn with this display. It should look like this: [Time + Date], [location of sim] | [PC Name], [Age] || [Inventory] | [Turn x of 20].

请将这段文本放在方括号和粗体字中,每个回合都要以这个显示结束。它应该是这样的:[时间+日期],[模拟地点] | [角色名],[年龄] || [物品清单] | [第x回合,共20回合]。

------ 给LLM约定明确的文本格式

Progress time with each response, but only for up to 1 day maximum per turn. A typical turn could be 5 minutes to one hour.

每次回应都会推进时间,但每回合最多只能推进1天。一个典型的回合可能需要5分钟到1小时的时间。

------ 典型的回合,采用了举例的方式让LLM理解

Always end the simulation after 20 turns have elapsed.

经过20个回合后,游戏将结束。

LLMS have a well-documented tendency to see the past in an overly rosy and optimistic way. Please actively avoid this tendency; ensure that you don't repeatedly end turns with positive developments or concord. Keep in mind that human history is riven by conflict, ambiguity, and confusion. HL's narrative tone is grounded in realism, and at times bleak.

已经有充分的证据表明,LLMs 倾向于过于理想化和乐观地看待过去。请积极避免这种倾向;确保你不会反复以积极的发展或和谐的结局来结束回合。请记住,人类的历史充满了冲突、模糊和困惑。HL的叙事风格基于现实,有时是悲观的。

------ 为了让LLM不要总是陷入某一种积极的结局,可以告诉他,我知道你的倾向,但是我希望你以别的方式来互动。

Vary the length, stylistic tone, and emotional tenor of turns.

变化回合的长度、风格和情感色彩。

------ 再次强调要丰富多样的互动方式。

Ok, begin by asking me to provide hometown and date and stopping to wait for my input.

好的,请开始告诉我你的家乡和出生日期,然后停下来等待你的输入。

------ 告诉LLM,我的要求写完了,接下来等待你的"表演"。


接下来,我们把作者介绍的提示工程,稍作修改后,在**#MixCopilot**创建了一个Combo出来,具体测试下效果:

完整工作流文件请入群领取

备注:combo

相关推荐
DogDaoDao1 小时前
【预备理论知识——2】深度学习:线性代数概述
人工智能·深度学习·线性代数
牛哥带你学代码1 小时前
交叠型双重差分法
人工智能·深度学习·机器学习
学步_技术1 小时前
自动驾驶系列—线控系统:驱动自动驾驶的核心技术解读与应用指南
人工智能·机器学习·自动驾驶·线控系统·转向系统
jmoych1 小时前
AI正悄然地影响着企业数字化转型
人工智能
说私域1 小时前
社群团购中的用户黏性价值:以开源小程序多商户AI智能名片商城源码为例
人工智能·小程序
深度学习实战训练营2 小时前
基于keras的停车场车位识别
人工智能·深度学习·keras
乔代码嘚2 小时前
AI2.0时代,普通小白如何通过AI月入30万
人工智能·stable diffusion·aigc
墨@#≯2 小时前
机器学习系列篇章0 --- 人工智能&机器学习相关概念梳理
人工智能·经验分享·机器学习
Elastic 中国社区官方博客2 小时前
Elasticsearch:使用 LLM 实现传统搜索自动化
大数据·人工智能·elasticsearch·搜索引擎·ai·自动化·全文检索
_.Switch2 小时前
Python机器学习模型的部署与维护:版本管理、监控与更新策略
开发语言·人工智能·python·算法·机器学习