Firebase هي منصة لتطوير التطبيقات
تستند إليها Google ويثق بها ملايين المطوّرين في جميع أنحاء العالم. إذا كنت مطوّرًا في Firebase وتريد استخدام PaLM API لإنشاء تطبيقات بلغات طبيعية، هناك العديد من إضافات
Firebase التي تتيح لك ذلك. وهي حلول معبّأة مسبقًا تساعدك في نشر
الوظائف في تطبيقك بسرعة.
تلخيص النص
إضافة "تلخيص النص في Firebase"
هي أداة مستندة إلى الذكاء الاصطناعي (AI) مصمَّمة لإنشاء ملخّصات للتطبيقات المختلفة.
هذه الإضافة هي طريقة سهلة للمطوّرين لاستخدام PaLM API
بأكبر قدر ممكن من سهولة الاستخدام، كما أنّها تشكّل مكانًا مناسبًا للبدء.
إنشاء برنامج دردشة مبرمجة
يتيح Chatbot مع إضافة PaLM API
على Firebase للمطوّرين إنشاء وإدارة محادثات تفاعلية بين المستخدمين والنماذج اللغوية الكبيرة من خلال PaLM API، وذلك باستخدام Cloud
Firestore كقاعدة بيانات. وتمثِّل المجموعة في Cloud Firestore كل محادثة. تراقب الإضافة عملية جمع الرسائل الجديدة، ثم ترسل طلبات بحث إلى PaLM API
للحصول على ردّ مناسب، مع الأخذ في الاعتبار الرسائل السابقة في المحادثة كسياق.
من خلال دمج إضافة Chatbot مع PaLM API، يمكن للمطوّرين
إنشاء تطبيقات دردشة مبرمجة بفعالية وتحسين تجربة المستخدم
والتفاعل مع توفير الوقت والجهد المبذولين في تطوير الرموز المخصّصة.
الاتصال بواجهة PaLM API بأمان
إنّ Call PaLM API Securely Firebase
إضافة توفّر نقاط نهاية آمنة من واجهة برمجة التطبيقات محمية من خلال ميزة App
Check التي تتيح
لمطوّري البرامج التفاعل مع PaLM API من تطبيقات Firebase. تعمل نقطة النهاية المنشورة كبرنامج تضمين رفيع، ما يتيح للمطوّرين إرسال نص الطلب نفسه كما لو كانوا عند الدخول مباشرةً إلى PaLM API.
تخزّن هذه الإضافة مفتاح واجهة برمجة التطبيقات كمفتاح سري في Cloud Secret
Manager، ما يسمح لنقطة نهاية واجهة برمجة التطبيقات
بالوصول إليه مباشرةً بدون تضمينه في الطلب. يتم نشر نقاط نهاية واجهة برمجة التطبيقات بصفتها دوالّ قابلة للاتصال في Firebase، ما يتطلّب من المستخدمين تسجيل الدخول
كمستخدم تفويض Firebase لطلب الوظائف من تطبيقات العملاء
بنجاح.
باستخدام إضافة Call PaLM API Securely، يمكن للمطوّرين تبسيط عملية التفاعل الآمن مع PaLM API وتوفير الوقت والجهد اللازمَين لتطوير الرموز البرمجية المخصّصة.
مهام اللغة باستخدام PaLM API
تتيح مهام اللغة مع إضافة PaLM API
في Firebase للمطوّرين تنفيذ مهام متنوعة تستند إلى نصوص، مثل الترجمة
والتصنيف والتلخيص والتعرّف على الكيانات المُسمّاة وإنشاء نصوص
تصميم الإعلان، وذلك باستخدام PaLM API. يحدد المستخدمون طلبًا مخصصًا، ومسار جمع
Firestore، وتراقب الإضافة المجموعات المحددة مسبقًا للمستندات الجديدة. عند رصد مستند جديد، تستبدل الإضافة متغيرات المستندات بنماذج شريط المقبض، وتستعلم PaLM API استنادًا إلى الطلب المحدَّد، وتكتب الردّ على مستند التشغيل في حقل استجابة قابل للضبط.
يمكن للمطوّرين تثبيت نُسخ متعددة من الإضافة Language Tasks with PaLM
API لمهام مختلفة، مع ضبط كل مثيل لمهمة معيّنة.
من خلال تضمين هذه الإضافة، يمكن للمطوّرين تبسيط عملية تنفيذ المهام اللغوية في تطبيقاتهم، ما يؤدي إلى تحسين الوظائف وتجربة المستخدم مع توفير الوقت والجهد المبذول في تطوير التعليمات البرمجية المخصّصة.
تاريخ التعديل الأخير: 2024-02-15 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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."]]