为您的应用程序添加生成式人工智能

  • Learn some options for adding a text generating AI (chatbot) to your digital solution
  •  Learn some options for adding image generating AI to your digital solution

这些是本课的活动:

基因 AI 组件

While we have covered how to build a machine learning model that will classify images, sound, and text, there is another way to bring AI to your digital solution. You can basically embed a chatbot like ChatGPT or Gemini into your solution so your users can take advantage of that AI power. 

Generative AI components allow the solution to create new, original content in response to user input, rather than simply retrieving or displaying existing information. These components are typically powered by advanced machine learning models—such as large language models for text and diffusion models for images. So, essentially you are using a pre-trained model when using a GenAI component in your solution.

When integrated into a digital solution, they can take many forms. Here are some examples:

  • 提供个性化答案的人工智能聊天机器人、
  • 起草或编辑文本的写作助理、
  • 生成图像的创意工具
  • 根据用户需求总结、翻译或调整内容的生产力功能。

ADDING GENAI TO YOUR DIGITAL SOLUTION

几乎所有编程平台或语言都支持添加生成式人工智能聊天机器人或图像生成器。 

  • 应用程序发明家 包含聊天机器人和图像机器人组件,可轻松添加并编写代码。
    • 聊天机器人- 为测试目的,您可以使用默认选项,该选项可让您通过 MIT 获取一定数量的免费令牌。
    • Imagebot——您需要注册一个OpenAI API密钥才能使用Imagebot,该密钥需要付费。
  • 可拧紧 您可以将 OpenAI 服务添加到您的项目中,以使用 OpenAI 聊天机器人功能
    • 使用 OpenAI 服务需要设置 OpenAI API 密钥,这需要花钱。注册后可获得免费点数
  • 基于文本的语言,如 Python、Java、Javascript 有很多利用大型语言模型的选项。您可以四处搜索,找到可用于测试和教育目的的免费 LLM API。

The activity below uses MIT App Inventor as the coding platform. If you want are interested in adding an AI chatbot to a solution using a text-based language, try this tutorial, Flip the Switch (React/Javascript) or this tutorial, JusticePath (Python/Streamlit). 

活动:个人导师应用程序

预计时间45 分钟

观看视频教程

使用麻省理工学院的 App Inventor 制作一个聊天机器人应用程序,充当个人导师。 请注意,您可以使用默认 API,该 API 每天提供有限数量的令牌/密码,无需支付任何费用。
查看教程

反思

You have learned about some ways to include generative AI features in your digital solution. 

Can your users benefit from having a generative AI feature in your solution?

Sunset and reflection over lake

关键术语回顾

  • 生成式人工智能 ——一种能够生成文本、图像和声音等内容的技术
  • 大型语言模型- 利用海量数据训练而成的预测和生成文本的人工智能模型
  • 扩散模型 ——一种通过先训练数百万张图像、向其中添加噪声、学习模式,再去除噪声以生成新图像的人工智能模型
  •  

其他资源

Want to explore some more ways to add generative AI to your solution?