- 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
以下是本課的活動:
gen 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:
- 提供個人化解答的 AI 聊天機器人、
- 起草或編輯文本的寫作助理、
- 能生成圖像的創意工具
- 生產力功能,可根據使用者的需求概括、翻譯或改編內容。
ADDING GENAI TO YOUR DIGITAL SOLUTION
幾乎所有程式設計平台或語言都具備添加生成式人工智慧聊天機器人或圖像生成器的途徑。
- App Inventor 具備聊天機器人與圖像機器人元件,可輕鬆添加並編寫程式碼。
- Chatbot- 為了測試目的,您可以使用 Default 選項,此選項可讓您透過 MIT 獲得一定數量的免費代用幣。
- Imagebot– 您必須註冊 OpenAI API 金鑰(需付費)才能使用 Imagebot。
- 可縮小 有 OpenAI 服務,您可以添加到您的專案中使用 OpenAI 聊天機功能
- 使用 OpenAI 服務需要設定 OpenAI API 金鑰,這需要花費。當您註冊時,您可以獲得免費的點數。
- 以文字為基礎的語言,如 Python、Java、Javascript 有許多利用大型語言模型的選項。您可以四處搜尋有免費選項的 LLM API,以供測試和教育之用。
- Google AI Studio提供免費 Gemini API 存取權限
- Hugging Face透過其推論 API,提供多種適用於文字的 LLM 模型及適用於圖像的擴散模型。
- Github 上免費 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).
活動:個人導師應用程式
遵循視訊教學
反射
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?
關鍵術語的審查
- 生成式人工智慧 ——具備創造文字、圖像及聲音等內容之技術
- 大型語言模型 – 一種預測和生成文本的 AI 模型,使用大量數據進行訓練
- 擴散模型 – 透過先以數百萬張圖像進行訓練、對圖像添加雜訊、學習圖像模式,再透過消除雜訊來生成新圖像的人工智慧模型
其他資源
Want to explore some more ways to add generative AI to your solution?
- App Inventor AI 教學(在頁面上尋找提及產生式 AI 的教學)
- 在 Thunkable 中使用 GenAI
