Firebase は Google に支えられ、世界中の何百万人ものデベロッパーから高い信頼を得ているアプリ開発プラットフォームです。Firebase のデベロッパーで、PaLM API を使用して自然言語アプリケーションを構築することを検討している場合、複数の Firebase Extensions が用意されています。これらは、アプリに機能を迅速にデプロイするために役立つ、あらかじめパッケージ化されたソリューションです。
テキストをまとめる
Summarize Text Firebase 拡張機能は、さまざまなアプリケーションの要約を生成するように設計された AI 搭載ツールです。この拡張機能は、デベロッパーが PaLM API をできる限り簡単に使用できるようにするための便利な手段であり、これを始める場所として最適です。
chatbot を作成
PaLM API Firebase Extensions を使用する chatbot を使用すると、デベロッパーは、データベースとして Cloud Firestore を使用し、PaLM API を介してユーザーと大規模言語モデル間のインタラクティブな会話を確立し、管理できます。Cloud Firestore のコレクションは各チャットを表します。この拡張機能は、新しいメッセージの収集をモニタリングし、チャットの以前のメッセージをコンテキストとみなして、適切なレスポンスを PaLM API に照会します。
chatbot と PaLM API 拡張機能を統合することで、デベロッパーは chatbot アプリケーションを効率的に作成し、ユーザー エクスペリエンスとインタラクションを向上させ、カスタムコード開発の時間と労力を節約できます。
PaLM API を安全に呼び出す
Call PaLM API Securely Firebase Extension は、App Check で保護された安全な API エンドポイントを提供します。これにより、デベロッパーは Firebase アプリから PaLM API を操作できるようになります。デプロイされたエンドポイントはシンラッパーとして機能するため、デベロッパーは PaLM API に直接アクセスする場合と同じリクエスト本文を送信できます。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-02-15 UTC。"],[],[],null,["# PaLM API Firebase Extensions\n\n\u003cbr /\u003e\n\n[Firebase](https://firebase.google.com/) is an app development\nplatform backed by Google and trusted by millions of developers around the\nworld. If you're a Firebase developer interested in using the PaLM API to build\nnatural language applications, there are several [Firebase\nExtensions](https://extensions.dev/extensions) to make\nit easy for you. These are pre-packaged solutions that help you deploy\nfunctionality to your app quickly.\n\nSummarize text\n--------------\n\nThe [Summarize Text Firebase\nExtension](https://extensions.dev/extensions/googlecloud/firestore-palm-summarize-text)\nis an AI-powered tool designed to generate summaries for various applications.\nThis extension is a handy way for developers to use the PaLM API as easily as\npossible, and a good place to get started.\n\nCreate a chatbot\n----------------\n\nThe [Chatbot with PaLM API Firebase\nExtension](https://extensions.dev/extensions/googlecloud/firestore-palm-chatbot)\nenables developers to establish and manage interactive conversations between\nusers and large language models through the PaLM API, using [Cloud\nFirestore](https://firebase.google.com/docs/firestore) as the\ndatabase. A collection in Cloud Firestore represents each chat. The extension\nmonitors the collection of new messages, then queries the PaLM API for a\nsuitable response, considering the chat's previous messages as context.\n\nBy integrating the **Chatbot with PaLM API** extension, developers can\nefficiently create chatbot applications, enhancing user experience and\ninteraction while saving time and effort on custom code development.\n\nCall PaLM API Securely\n----------------------\n\nThe [Call PaLM API Securely Firebase\nExtension](https://extensions.dev/extensions/googlecloud/palm-secure-backend)\noffers secure API endpoints, protected by [App\nCheck](https://firebase.google.com/docs/app-check), which allow\ndevelopers to interact with the PaLM API from their Firebase apps. The deployed\nendpoint functions as a thin wrapper, enabling developers to send the same\nrequest body as they would when directly accessing the PaLM API.\n\nThis extension stores the API key as a secret in [Cloud Secret\nManager](https://cloud.google.com/secret-manager), allowing the API\nendpoint to access it directly without including it in the request. The API\nendpoints are deployed as [Firebase Callable functions](https://firebase.google.com/docs/functions/callable), requiring users to be\nsigned in as a Firebase Auth user to call the functions from their client\napplications successfully.\n\nBy using the **Call PaLM API Securely** extension, developers can streamline the\nprocess of securely interacting with the PaLM API while saving time and effort\non custom code development.\n\nLanguage Tasks with PaLM API\n----------------------------\n\nThe [Language Tasks with PaLM API Firebase\nExtension](https://extensions.dev/extensions/googlecloud/firestore-palm-gen-text)\nenables developers to perform diverse text-based tasks, such as translation,\nclassification, summarization, named entity recognition, and creative text\ngeneration, using the PaLM API. Users define a custom prompt, Firestore\ncollection path, and the extension monitors pre-specified collections for new\ndocuments. Upon detecting a new document, the extension replaces document\nvariables with handlebar templates, queries the PaLM API based on the given\nprompt, and writes the response back to the triggering document in a\nconfigurable response field.\n\nDevelopers can install multiple instances of the **Language Tasks with PaLM\nAPI** extension for different tasks, with each instance configured for a\nspecific task.\n\nBy incorporating this extension, developers can streamline the process of\nperforming language tasks in their applications, improving the functionality and\nuser experience while saving time and effort on custom code development."]]