アプリにジェネレーティブAIを追加する

  • 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

ほぼすべてのコーディングプラットフォームや言語において、生成AIチャットボットや画像生成ツールを追加する方法が存在します。 

  • App Inventor チャットボットとイメージボットのコンポーネントを備えており、簡単に追加およびコーディングできます。
    • チャットボット- テスト目的で、MITを通じて一定量の無料トークンを利用できるデフォルトオプションを使用できます。
    • Imagebot– Imagebotを利用するには、有料のOpenAI APIキーの登録が必要です。
  • サンカブル には、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). 

アクティビティ:パーソナル・チューター・アプリ

所要時間45分

ビデオチュートリアルに従う

MIT App Inventorを使って、個人家庭教師として機能するチャットボットアプリを作ろう。 1日あたりのトークン/プロンプト数に制限のあるDefault 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

主な用語のおさらい

  • 生成AI – テキスト、画像、音声などのコンテンツを生成する能力を持つ技術
  • 大規模言語モデル- 膨大なデータを使って学習させた、テキストを予測・生成するAIモデル
  • 拡散モデル – まず何百万もの画像で学習し、それらにノイズを加え、パターンを学習した後、そのノイズを除去して新たな画像を生成するAIモデル
  •  

追加リソース

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