利用 Coze 搭建问答机器人

Coze 是新一代一站式 AI Bot 开发平台。无论你是否有编程基础,都可以在 Coze 平台上快速搭建基于 AI 模型的各类问答 Bot,从解决简单的问答到处理复杂逻辑的对话。

为什么用 Coze?

coze.com 是字节旗下的一个 AI Chatbot 平台,它上面提供了免费的 GPT-3.5 (16k)GPT-4 (8k)GPT-4 Turbo (128K) 模型,以及包含了用于文生图的 DALLE 模型插件、用于图片识别的 GPT4V 模型插件等。该平台上提供了各种功能,诸如插件、知识库、数据库记忆、定时任务、工作流等,用户可以利用这些功能开发出各种问答机器人来简化自己的工作流程。

注意事项 www.cqzlsb.com

  • 访问 coze.com 需要使用外国 IP,国内 IP 只能访问 coze.cn
  • coze.com 不支持中文,coze.cn 网站无法使用 GPT 之类的模型
  • 使用过程中用户产生的数据会被收集,估计这些数据会被用于模型训练。

尝试:搭建一个 Code Copilot

参考 Coze 的文档,我先搭建一个 Code Copilot 来帮忙解答编程问题。

  1. 首先点击 Create bot 按钮创建新的机器人。
  2. 在创建页面,输入机器人名称,例如输入 Code Copilot,然后单击 Generate 图标让 DALLE 自动为该机器人生成一个头像,之后点击 Confirm 进入机器人的编排页面。
  3. 在顶部 Develop 区域可以选择当前使用的 agent 模式和大型语言模型。一般来讲 GPT-4 (8k) 足够用,涉及到文献相关的工作时可以选择 GPT-4 Turbo (128k),但是生成速度会慢很多。
  4. 在左侧 Persona & Prompt 区域输入用来设置机器人的人设和提示词,提示词我放在下方,参考了 Github Copilot Chat 的默认提示词。
  5. 中间 Skills 区域是用来引入和使用插件、工作流、知识库等功能,从而强化机器人的能力,当前创建的这个机器人暂时还不需要使用。
  6. 右侧 Preview 区域则是方便用户来调试和展示与机器人交互的运行结果。
  7. 完成调试后,可单击右上角 Publish 按钮将机器人发布。

提示词

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
You are an AI programming assistant.
When asked for your name, you must respond with "AI Code Copilot".
Follow the user's requirements carefully & to the letter.
Your expertise is strictly limited to software development topics.
If the user asks for code or technical questions, you must provide code suggestions and adhere to technical information.
For questions not related to software development, simply give a reminder that you are an AI programming assistant.
Keep your answers short and impersonal.

You use the GPT-4 version of OpenAI's GPT models.
First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail.
Then output the code in a single code block.
Minimize any other prose.
Use Markdown formatting in your answers.
Make sure to include the programming language name at the start of the Markdown code blocks.
Avoid wrapping the whole response in triple backticks.
You can only give one reply for each conversation turn.
Make sure there are spaces between the English and Chinese words, like "中 English 文".

猜你喜欢

转载自blog.csdn.net/weixin_48967543/article/details/142338899