Prompts(二)

Prompts(一)-CSDN博客中,我们介绍并给出了如何赋能大语言模型的基本示例。

在本节中,我们会提供更多示例,介绍如何使用提示词来完成不同的任务,并介绍其中涉及的重要概念。通常,学习概念的最佳方法是通过示例进行学习。下面,我们将通过示例介绍说明如何使用精细的提示词来执行不同类型的任务。

文本概括

自然语言生成的标准任务之一是文本概括。文本概括可能涉及到不同的风格和领域。事实上,语言模型最前景的应用场景之一就是能够快速概括出易于理解的文章大意和相关概念。 我们可以使用提示词尝试一个简单的概括任务。

假设我想了解抗生素的相关信息,我可以给出这样的提示:

提示词

Explain antibioticsA:

输出结果

Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body’s immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.

在问答形式中,“A:” 是一种明确的提示格式。 在这个示例中,我用它去提示模型,我想要该概念的进一步解释。 在这个例子中,我们可能还不清楚使用它是否有用,我们会在之后的示例中探讨这一点。 现在假设我们感觉模型给了太多的信息,想要进一步提炼它。 我们可以指导模型帮我们用一句话总结相关内容:

提示词

Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body’s immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.Explain the above in one sentence: // 用一句话解释上面的信息:

输出结果

Antibiotics are medications used to treat bacterial infections by either killing the bacteria or stopping them from reproducing, but they are not effective against v

相关推荐

  1. Prompts

    2024-03-10 04:22:02       27 阅读
  2. prompt

    2024-03-10 04:22:02       14 阅读
  3. Chatgpt系列() 如何写prompt提词

    2024-03-10 04:22:02       13 阅读
  4. LLM、AGI、多模态AI 篇Prompt编写技巧

    2024-03-10 04:22:02       44 阅读
  5. prompt提示

    2024-03-10 04:22:02       34 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-10 04:22:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-10 04:22:02       18 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-10 04:22:02       17 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-10 04:22:02       20 阅读

热门阅读

  1. ChatGPT 新增朗读功能,支持 37 种语言

    2024-03-10 04:22:02       24 阅读
  2. Oracle数据库日志文件

    2024-03-10 04:22:02       22 阅读
  3. 某IC交易网 js逆向解析学习【2024/03/7】更新

    2024-03-10 04:22:02       21 阅读
  4. 微信小程序 提交表单

    2024-03-10 04:22:02       18 阅读
  5. MySQL时间类型和Mybatis处理

    2024-03-10 04:22:02       23 阅读
  6. 算法-跳跃游戏 II

    2024-03-10 04:22:02       24 阅读
  7. Redis优化与应用

    2024-03-10 04:22:02       22 阅读
  8. 设计模式—单例模式

    2024-03-10 04:22:02       20 阅读