במאמר הזה מוסבר איך מתחילים להשתמש בשירות להערכת AI גנרטיבי באמצעות מסוף Google Google Cloud .
לפני שמתחילים
- נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Make sure that you have the following role or roles on the project: Storage Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
Make sure that you have the following role or roles on the project: Storage Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- Click Select a role, then search for the role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
הערכת המודל
כדי להעריך את המודל:
נכנסים לדף Gen AI Evaluation במסוף Google Cloud .
לוחצים על הערכה חדשה כדי לפתוח את דף ההערכה.
בוחרים מקור לטעינת מערך נתונים לצורך הערכה:
כדי להעלות קובץ CSV או JSONL מקומי, בוחרים באפשרות העלאת קובץ. קבוצת הנתונים צריכה להכיל פרומפטים או רשומות לשימוש בתבנית לפרומפט, ואפשר גם תגובות של מודלים. מספר השורות המקסימלי הוא 200.
כדי ליצור פרומפטים מתבנית לפרומפט, בוחרים באפשרות יצירת נתונים. שירות ההערכה של AI גנרטיבי יוצר ומאכלס את המשתנים שהגדרתם בתבנית לפרומפט כשבניתם את מערך הנתונים. מידע נוסף על יצירת תבניות להנחיות זמין במאמר שימוש בתבניות להנחיות.
מזינים את תבנית לפרומפט עם המשתנים בשדה תבנית לפרומפט.
כדי להוסיף תיאור לכל אחד מהמשתנים או לציין את מספר הדגימות שרוצים ליצור, מרחיבים את האפשרות הגדרת משתנים וגודל מדגם.
לוחצים על יצירת מערך נתונים כדי ליצור הנחיות.
ליצור תשובות ולהעריך אותן על סמך ההנחיות שלכם:
בקטע מועמדים להערכה, לוחצים על הוספת מועמד להערכה. אם כבר קיים מועמד, לוחצים על עריכה כדי להגדיר את ההנחיות והתשובות להערכה. לדוגמה, אתם יכולים לציין הנחיות או תשובות מהקובץ שהעליתם או מנתונים שנוצרו.
כדי להשוות בין כמה מועמדים, לוחצים על הוספת מועמד להשוואה.
בקטע מדדים, מוסיפים לפחות מדד אחד כדי לדרג את איכות התשובות של המועמד. מידע נוסף על סוגי המדדים זמין בקטע מדדי הערכה בדף הסקירה הכללית של שירות הערכת ה-AI הגנרטיבי.
בחלק מהקריטריונים להערכה שמותאמים אישית, אפשר להרחיב את האפשרויות המתקדמות ולספק הנחיות מותאמות אישית כדי לכוון את הקריטריונים שנוצרים מכל הנחיה, כמו
Evaluate the dataset on cultural sensitivity.- בקטע Name and storage configuration (שם והגדרת אחסון), מציינים שם להערכה וקטגוריה של Cloud Storage שבה יישמרו תוצאות ההערכה.
לוחצים על הערכה.
הצגת תוצאות ההערכה
כדי לראות את תוצאת הבדיקה:
נכנסים לדף GenAI Evaluation במסוף Google Cloud .
לוחצים על שם ההערכה.
לכל הנחיה בקבוצת הנתונים של ההערכה, התגובה מוצגת לצד תוצאות ההערכה.
הערכת מודלים של שותפים
אתם יכולים להשתמש בשירות ההערכה של AI גנרטיבי כדי להעריך את המודלים הבאים של שותפים:
- Anthropic
- Llama
יש תמיכה במודלים של שותפים דרך Model Garden ב-Gemini Enterprise Agent Platform. כדי לבחור מודל להערכה, צריך להפעיל מודל של שותף בModel Garden. כדי להעריך מודל של שותף, בוחרים אותו בתפריט בחירת המודל במהלך הגדרת ההערכה.
תמחור
התמחור של הערכת מודלים של צד שלישי מבוסס על כל חיוב שנוצר על היסק מודלים ב-Gemini Enterprise Agent Platform Model Garden. מחירון ל-AI גנרטיבי ב-Agent Platform