<p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">ICIO 框架简介</p> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">ICIO 框架由 Elavis Saravia 提出并发布在 Github,该框架主要包括以下四个部分:</p> <ul data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"><strong data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060" data-immersive-translate-paragraph="1">指令 I (Instruction)</strong></li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"><strong data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">背景信息 C (Context)</strong></li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"><strong data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">输入数据 I (Input Data)</strong></li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"><strong data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">输出指示器 O (Output Indicator)</strong></li> </ul> <h3 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">每个模块的详细解释:</h3> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060" data-immersive-translate-paragraph="1">指令 (Instruction)</h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">指令是 ICIO 提示词框架的核心部分。它明确地描述了模型需要执行的任务。指令应该简洁、明确,确保模型能够理解任务的目标和要求。例如,在文摘任务中,指令可以是“将文章最重要的内容提炼成 5 个标题及简短说明的文摘”。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">背景信息 (Context)</h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">背景信息是提供给模型的上下文信息,可以帮助模型更好地理解任务和生成响应。背景信息可以包括任务的背景、目的、相关知识和其他相关信息。例如,在文摘任务中,背景信息可以是“这个书摘的主要作用是为教育从业者提供教学方法参考”。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">输入数据 (Input Data)</h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">在 ICIO 框架中,输入数据是可选的。如果模型不需要特定的输入数据,这一部分可以省略。例如,在数据分析任务中,输入数据可能是一些 EXL 表格。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">输出指示器 (Output Indicator)</h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">输出指示器用于指导模型输出的类型或格式。它告诉模型如何组织和呈现输出结果。输出指示器应该与任务的需求相匹配,确保模型能够提供正确、有用的结果。例如,在文本生成任务中,输出指示器可以是“生成一段关于 AI 对人类的影响的文章,要求使用生动的语言和具体的例子”。</p> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">注:ICIO 提示词框架的结构是非常灵活的,可以根据具体任务的需求进行调整和扩展。在实际应用中,可以根据任务类型和需求来定制提示词框架的各个部分,以确保 AI 模型能够更好地理解和执行任务。</p> <h3 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">以下是一个基于 ICIO 框架的数据分析任务的实际案例 Prompt 如下:</h3> <blockquote> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">Instruction: 数据分析专家</h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">根据我提供的数据,为我提供准确、专业的数据分析报告。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060" data-immersive-translate-paragraph="1">Context:<span class="notranslate immersive-translate-target-wrapper" lang="zh-CN" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-translation-pre-whitespace immersive-translate-target-translation-theme-none immersive-translate-target-translation-inline-wrapper-theme-none immersive-translate-target-translation-inline-wrapper" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-inner immersive-translate-target-translation-theme-none-inner" data-immersive-translate-translation-element-mark="1">背景:</span></span></span></h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">多年的运营经验和数据分析工作使你具备了优秀的数据分析和总结能力。通过用户提供的数据,你能很好的帮助他们完成数据分析和解读工作,并形成易于阅读的数据分析报告。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060" data-immersive-translate-paragraph="1">Input Data:<span class="notranslate immersive-translate-target-wrapper" lang="zh-CN" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-translation-pre-whitespace immersive-translate-target-translation-theme-none immersive-translate-target-translation-inline-wrapper-theme-none immersive-translate-target-translation-inline-wrapper" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-inner immersive-translate-target-translation-theme-none-inner" data-immersive-translate-translation-element-mark="1">输入数据:</span></span></span></h4> <p data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060">请以我上传的数据作为来源,进行解读和分析。请注意,这是一份直播课程观看的学员数据。</p> <h4 data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060" data-immersive-translate-paragraph="1">Output Indicator:<span class="notranslate immersive-translate-target-wrapper" lang="zh-CN" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-translation-pre-whitespace immersive-translate-target-translation-theme-none immersive-translate-target-translation-inline-wrapper-theme-none immersive-translate-target-translation-inline-wrapper" data-immersive-translate-translation-element-mark="1"><span class="notranslate immersive-translate-target-inner immersive-translate-target-translation-theme-none-inner" data-immersive-translate-translation-element-mark="1">产出指标:</span></span></span></h4> </blockquote> <ol data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>总结直播观看总体数据。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>统计观看时长分布,柱状图。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>统计超过60分钟的学员人数,姓名及具体时长。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>统计观看低于20分钟的学员人数,姓名及具体时长。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>课程的首次观看率,直播观看率。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>课程的回放观看率,通过且仅通过回放观看的人数比例。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>完课率(5和6相加,去重和总人数的比例)。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>完整分析报告。</blockquote> </li> <li data-immersive-translate-walked="2c6267d4-0bfd-4b2e-9188-a97cbcd6a060"> <blockquote>统计请以分钟为单位,所有结果以表格形式输出,表格至少应包含10条数据。</blockquote> </li> </ol> <img class="aligncenter size-medium_large wp-image-6364" src="https://img.xiaohu.ai/2024/04/579b865b1130a53296d24ed92165d4f6-768x962.png" alt="" width="768" height="962" /> <img class="aligncenter size-medium_large wp-image-6365" src="https://img.xiaohu.ai/2024/04/1324b3a2b4bf0d8661084685d7d4e180-768x4164.jpeg" alt="" width="768" height="4164" /> ICIO 框架虽然是一个非常简单的提示词框架,但运用得当可以发挥很高效的分析性能。希望它能被有效的运用起来。