Quick start: Evaluate and track a prompt template

Take this tutorial to learn how to evaluate and track a prompt template. You can evaluate prompt templates in projects or deployment spaces to measure the performance of foundation model tasks and understand how your model generates responses. Then, you can track the prompt template in an AI use case to capture and share facts about the asset to help you meet governance and compliance goals.

Required services
watsonx.governance
watsonx.ai
Watson Machine Learning

Your basic workflow includes these tasks:

  1. Open a project that contains the prompt template to evaluate. Projects are where you can collaborate with others to work with assets.
  2. Evaluate a prompt template using test data.
  3. Review the results on the AI Factsheet.
  4. Track the evaluated prompt template in an AI use case.
  5. Deploy and test your evaluated prompt template.

Read about prompt templates

With watsonx.governance, you can evaluate prompt templates in projects to measure how effectively your foundation models generate responses for the following task types:

  • Classification
  • Summarization
  • Generation
  • Question answering
  • Entity extraction

Read more about evaluating prompt templates in projects

Read more about evaluating prompt templates in deployment spaces

Watch a video about evaluating and tracking a prompt template

Watch Video Watch this video to preview the steps in this tutorial. There might be slight differences in the user interface shown in the video. The video is intended to be a companion to the written tutorial.

This video provides a visual method to learn the concepts and tasks in this documentation.


Try a tutorial about evaluating and tracking a prompt template

In this tutorial, you will complete these tasks:




Tips for completing this tutorial
Here are some tips for successfully completing this tutorial.

Get help in the community

If you need help with this tutorial, you can ask a question or find an answer in the watsonx Community discussion forum.

Set up your browser windows

For the optimal experience completing this tutorial, open Cloud Pak for Data in one browser window, and keep this tutorial page open in another browser window to switch easily between the two applications. Consider arranging the two browser windows side-by-side to make it easier to follow along.

Side-by-side tutorial and UI

Tip: If you encounter a guided tour while completing this tutorial in the user interface, click Maybe later.



Task 1: Create the workspaces

To complete this tutorial, you need three workspaces:

  • Development phase: A development project to store the assets that you develop, evaluate, and track.
  • Validation phase: A validation project to store the assets that are ready to be validated.
  • Operation phase: A production deployment space to store the validated assets and deployments.

Task 1a: Create the development project based on a sample

You need a project to store the prompt template and the evaluation. Follow these steps to create a project based on a sample:

  1. Download the getting-started-with-watsonx-governance.zip file.

  2. From the Navigation Menu Navigation menu, choose Projects > All projects.

  3. On the Projects page, click New project.

  4. Select Local file.

  5. Drag the previously downloaded ZIP file on to the page.

  6. On the Create a project page, copy and paste the project name and add an optional description for the project.

    Getting started with watsonx.governace
    
  7. Click Create.

  8. Click View new project to verify that the project and assets were created successfully.

  9. Click the Assets tab to view the project's assets.

Checkpoint icon Check your progress

The following image shows the development project Assets tab. You are now ready to create the inventory and AI use case.

Sample project assets

Task 1b: Create a validation project

Typically, the prompt engineer evaluates the prompt with test data, and the validation engineer validates the prompt. The validation engineer has access to the validation data that prompt engineers might not have. In this case, validation data occurs in a different project. Follow these steps to create an empty project. Later, you import assets from the development project into the validation project.

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.

  2. On the Projects page, click New project.

  3. For the project name, type:

    Validation project
    
  4. Click Create.

Checkpoint icon Check your progress

The following image shows the empty validation project.

Validation project

Task 1c: Create a deployment space

You need to create a deployment space now, so you can later promote the prompt template to that deployment space. Follow these steps to create the deployment space:

  1. From the Navigation Menu Navigation menu, choose Deployments.

  2. Click New deployment space.

  3. For the Space name, copy and paste the following text:

    Insurance claims deployment space
    
  4. For the Deployment stage, select Production.

    Important: You must select Production for the Deployment stage if you wish to move the deployment from the Evaluation stage to the Operation stage.
  5. Click Create.

  6. When the space is created, click View new space.

Checkpoint icon Check your progress

The following image shows the deployment space.

Deployment space




Task 2: Create an inventory and AI use case

An inventory is for storing and reviewing AI use cases. AI use cases collect governance facts for AI assets that your organization tracks. You can view all the AI use cases in an inventory.

Task 2a: Create an inventory

Follow these steps to create an inventory:

  1. From the Navigation Menu Navigation menu, choose AI governance > AI use cases.

    Note: If this is your first time working with AI use cases, then you are prompted to Complete setup.
  2. Click the Manage inventories icon Manage inventories.

    If you have an existing inventory, then you can skip to Create an AI use case to use that inventory for this tutorial. Otherwise, continue with the following steps to create an inventory.

  3. Click New inventory.

  4. For the name, copy and paste the following text:

    Golden Bank Insurance Inventory
    
  5. For the description, copy and paste the following text:

    Inventory for insurance related processing
    
  6. Clear the Add collaborators after creation option. You can restrict access at the inventory and AI use case level.

  7. Click Create.

  8. Close the Manage inventories page.

Checkpoint icon Check your progress

The following image shows the inventory. You are now ready to create an AI use case.

Inventory

Task 2b: Create an AI use case

This tutorial uses OpenPages to create and manage AI use cases. If you are not using OpenPages, then refer to Setting up an AI use case for the steps to create a use case without OpenPages.

An AI use case is a defined business problem that you can solve with the help of AI. Usually these are defined before any AI asset gets developed. Follow these steps to create an AI use case with OpenPages:

  1. Click New AI use case.

  2. For the Name, copy and paste the following text:

    Insurance claims processing AI use case
    
  3. For the Owner field, select your user name.

  4. For the Description and for the Purpose, type:

    Use case for evaluating the prompt templates for insurance claims processing for Golden Bank
    
  5. For the Primary Business Entity, click Add.

    1. Select Catalogs.

    2. Click Done.

  6. Click Save.

  7. In the Third Party Link field, click the link to open the AI use case in the watsonx user interface.

Checkpoint icon Check your progress

The following image shows the AI use case. You are now ready to track the prompt template.

AI use case

Task 2c: Associate the workspaces with the use case

Follow these steps to associate the workspaces with this use case:

Note: You can create new projects and deployment spaces from within the AI use case.
  1. Scroll to the Associated workspaces section.
  2. Under the Development phase, click Associate workspace.
    1. Select the Getting started with watsonx.governance project.
    2. Click Save.
  3. Under the Validation phase, click Associate workspace.
    1. Select the Validation project.
    2. Click Save.
  4. Under the Operation phase, click Associate workspace.
    1. Select Insurance claims deployment space.
    2. Click Save.

Checkpoint icon Check your progress

The following image shows the AI use case with all associated workspaces.

AI use case




Task 3: Evaluate the sample prompt template

The sample project contains a few prompt templates and CSV files used as test data. Follow these steps to review and evaluate one of the sample prompt templates:

Task 3a: Edit the sample prompt template in the Prompt Lab

View the prompt template to see how it is structured.

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.

  2. Select the Getting started with watsonx.governance project.

  3. Click the Assets tab.

  4. Click Insurance claim summarization to open the prompt template in Prompt Lab, and then click Edit.

  5. Click the Prompt variables icon Prompt variables.

    Note: To run evaluations, you must create at least one prompt variable.
  6. Scroll to the Try section. Notice the {input} variable in the Input field. You must include the prompt variable as input for testing your prompt. A prompt variable is a placeholder keyword that you include in the static text of your prompt at creation time and replace with text dynamically at run time.

Checkpoint icon Check your progress

The following image shows the Prompt Lab.

The following image shows the Prompt Lab.

Task 3b: Evaluate the prompt template

Now you are ready to evaluate the prompt template.

  1. Click the Evaluate icon Evaluate.
  2. If prompted, click Associate a service instance to select the service to use for the evaluation.
    1. Select the appropriate service.
    2. Click Associate.
  3. Expand the Generative AI Quality section to see a list of dimensions. The available metrics depend on the task type of the prompt. For example, summarization has different metrics than classification.
  4. Click Next.
  5. Select the test data:
    1. Click Select from project.
    2. Select Project file > Insurance claim summarization test data.csv.
    3. Click Select.
    4. For the Input column, select Insurance_Claim.
    5. For the Reference output column, select Summary.
    6. Click Next.
  6. Click Evaluate. When the evaluation completes, you see the test results on the Evaluate tab.
  7. Click the AI Factsheet tab.
    1. View the information on each of the sections on the tab.
    2. Click Development > Getting started with watsonx.governance > Test results to see the test results again.

Checkpoint icon Check your progress

The following image shows the results of the evaluation. Now you can start tracking the prompt template in an AI use case.

Prompt template evaluation test results




Task 4: Start tracking the prompt template

You can track your prompt template in an AI use case to report the development and test process to your peers. Follow these steps to start tracking the prompt template:

  1. On the AI Factsheet tab, click the Governance page.
  2. Click Track an AI use case.
  3. Notice that the associated AI use case is Insurance claims processing AI use case.
  4. Select an approach. An approach is one facet of the solution to the business problem represented by the AI use case. For example, you might create approaches to track several prompt templates in a use case.
  5. Click Next.
  6. If you are using OpenPages, you are prompted to define an asset record. Select New asset record, and click Next. Create AI use case in OpenPages
  7. For the model version, select Experimental.
  8. Accept the default value for the version number.
  9. Click Next.
  10. Review the information, and then click Track asset.
  11. When model tracking successfully begins, click the View details icon View details to open the AI use case.
  12. Click the Lifecycle tab to see the prompt template is in the Development phase. As the prompt template moves through the AI lifecycle, it will move through these phases:
    • Development phase: AI assets that have been developed in a project environment.
    • Validation phase: AI assets that have been deployed in a space or project for validation.
    • Operation phase: AI assets deployed in a space for operation.

Checkpoint icon Check your progress

The following image shows the Lifecycle tab in the AI use case with the prompt template in the Development phase. You are now ready to continue to the Validation phase.

The Lifecycle tab in the AI use case




Task 5: Import the tracked assets for validation

As noted in Task 1, typically, the prompt engineer evaluates the prompt with test data, and the validation engineer validates the prompt. The validation engineer has access to the validation data that prompt engineers might not have. In this case, validation data occurs in a different project. Follow these steps to export the development project and import those assets into the validation project that you created in Task 1 to move the asset into the Validation phase of the AI lifecycle:

Task 5a: Export the sample project

Follow these steps to export the development project:

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.
  2. Select the Getting started with watsonx.governance project.
  3. Click the Import/Export icon Import/Export > Export project.
  4. Check the box to select all assets.
  5. Click Export.
  6. Click Continue export to acknowledge that the assets might contain credentials.
  7. Wait to be prompted for the project file name, and type validation-project.zip, and then click Save.
  8. When the project export completes, click Back to project.

Checkpoint icon Check your progress

The following image shows the Export project page.

Export project page

Task 5b: Import the assets into the validation project

Follow these steps to import the assets from the development project into the validation project:

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.
  2. Open the Validation project.
  3. Click the Import/Export icon Import/Export > Import project.
  4. Click Browse.
  5. Select the validation-project.zip, and click Open.
  6. Select the option to indicate agreement: I understand that some types of assets overwrite existing asets with the same name and type.
  7. Click Import.
  8. When the assets import successfully, click the Refresh icon Refresh to see the imported assets.

Checkpoint icon Check your progress

The following image shows the validation project Assets tab. You are now ready to evaluate the sample prompt template in the validation project.

Validation project assets




Task 6: Validate the prompt template

Now you are ready to evaluate the prompt template in this validation project using the same evaluation process as before. Use the same test data set for evaluation. And select the same Input and Output columns as before. Follow these steps to validate the prompt template:

  1. Click the Assets tab in the Validation project.
  2. From the Overflow menu overflow menu for the Insurance claim summarization prompt template, select Evaluate.
  3. Click Evaluate to start the evaluation.
  4. Repeat the steps in Task 3a: Evaluate the prompt template to evaluate the Claims processing summarization prompt template in the Validation project.
  5. Click the AI Factsheet tab when the evaluation is complete.
  6. View both sets of test results:
    1. Click Development > Getting started with watsonx.governance > Test results.
    2. Click Validation > Validation project > Test results.

Checkpoint icon Check your progress

The following image shows the validation test results. You are now ready to promote the prompt template to a deployment space, and then deploy the prompt template.

Prompt template evaluation test results




Task 7: Deploy the prompt template

To deploy the prompt template, you need promote it the deployment space that you created in Task 1. Then, in the deployment space, you can create a deployment and test the deployed prompt template.

Task 7a: Promote the prompt template to a deployment space

You promote the prompt template to a deployment space in preparation for deploying it. Follow these steps to prompte the prompt template:

  1. Click Validation project project in the navigation trail to return to the Assets tab.

    Validation project navigation trail

  2. From the Overflow menu overflow menu for the Insurance claim summarization prompt template, select Promote to space.

  3. For the Target space, select the Insurance claims deployment space deployment space from the list.

  4. Check the option to Go to the space after promoting the prompt template.

  5. Click Promote.

Checkpoint icon Check your progress

The following image shows the prompt template in the deployment space. You are now ready to create a deployment.

Prompt template in deployment space

Task 7b: Deploy the prompt template

Now you can create an online deployment of the prompt template from inside the deployment space. Follow these steps to create a deployment:

  1. From the Insurance claims summarization asset page in the deployment space, select New deployment.

  2. For the deployment name, copy and paste the following text:

    Insurance claims summarization deployment
    
  3. Click Create.

Checkpoint icon Check your progress

The following image shows the deployed prompt template.

Deployed prompt template

Task 7c: View the deployed prompt template

Follow these steps to view the deployed prompt template in its current phase of the lifecycle:

  1. View the deployment when it is ready. The API reference tab provides information for you to use the prompt template deployment in your application.
  2. Click the Test tab. The Test tab allows you to submit an instruction and Input to test the deployment.
  3. Click Generate. Close the results window.
  4. Click the AI Factsheet tab.
  5. Scroll down to the bottom of the AI Factsheet page, and click the arrow for more details.
  6. Review the information in the Development, Validation, and Operation phases for the AI Factsheet for the deployed prompt template.
  7. Scroll to the top of the page, and click the View details icon View details to open the AI use case.
  8. In the use case, click the Lifecycle tab. You can see that the prompt template is now in the Operation phase.
  9. Click the Insurance claim summarization prompt template in the Operation phase. When you are done, click Cancel.
  10. Click the Insurance claims summarization deployment prompt template deployment in the Operation phase. When you are done, click Cancel.

Checkpoint icon Check your progress

The following image shows the prompt template prompt template in the Operation phase of the lifecycle.

Prompt template in the Operation phase




Next steps

Try one of the other tutorials:

Additional resources

Parent topic: Quick start tutorials

Prerequisites


Draft content - tasks for review servers

Task 1


To complete this tutorial, you need three workspaces:

  • Development phase: A development project to store the assets that you develop, evaluate, and track.
  • Validation phase: A validation project to store the assets that are ready to be validated.
  • Operation phase: A production deployment space to store the validated assets and deployments.

Task 1a: Create the development project based on a sample

You need a project to store the prompt template and the evaluation. Follow these steps to create a project based on a sample:

  1. Download the getting-started-with-watsonx-governance.zip file.

  2. From the Navigation Menu Navigation menu, choose Projects > All projects.

  3. On the Projects page, click New project.

  4. Select Local file.

  5. Drag the previously downloaded ZIP file on to the page.

  6. On the Create a project page, copy and paste the project name and add an optional description for the project.

    Getting started with watsonx.governace
    
  7. Click Create.

  8. Click View new project to verify that the project and assets were created successfully.

  9. Click the Assets tab to view the project's assets.

Checkpoint icon Check your progress

The following image shows the development project Assets tab. You are now ready to create the inventory and AI use case.

Sample project assets

Task 1b: Create a validation project

Typically, the prompt engineer evaluates the prompt with test data, and the validation engineer validates the prompt. The validation engineer has access to the validation data that prompt engineers might not have. In this case, validation data occurs in a different project. Follow these steps to create an empty project. Later, you import assets from the development project into the validation project.

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.

  2. On the Projects page, click New project.

  3. For the project name, type:

    Validation project
    
  4. Click Create.

Checkpoint icon Check your progress

The following image shows the empty validation project.

Validation project

Task 1c: Create a deployment space

You need to create a deployment space now, so you can later promote the prompt template to that deployment space. Follow these steps to create the deployment space:

  1. From the Navigation Menu Navigation menu, choose Deployments.

  2. Click New deployment space.

  3. For the Space name, copy and paste the following text:

    Insurance claims deployment space
    
  4. For the Deployment stage, select Production.

    Important: You must select Production for the Deployment stage if you wish to move the deployment from the Evaluation stage to the Operation stage.
  5. Click Create.

  6. When the space is created, click View new space.

Checkpoint icon Check your progress

The following image shows the deployment space.

Deployment space

Task 2


An inventory is for storing and reviewing AI use cases. AI use cases collect governance facts for AI assets that your organization tracks. You can view all the AI use cases in an inventory.

Task 2a: Create an inventory

Follow these steps to create an inventory:

  1. From the Navigation Menu Navigation menu, choose AI governance > AI use cases.

    Note: If this is your first time working with AI use cases, then you are prompted to Complete setup.
  2. Click the Manage inventories icon Manage inventories.

    If you have an existing inventory, then you can skip to Create an AI use case to use that inventory for this tutorial. Otherwise, continue with the following steps to create an inventory.

  3. Click New inventory.

  4. For the name, copy and paste the following text:

    Golden Bank Insurance Inventory
    
  5. For the description, copy and paste the following text:

    Inventory for insurance related processing
    
  6. Clear the Add collaborators after creation option. You can restrict access at the inventory and AI use case level.

  7. Click Create.

  8. Close the Manage inventories page.

Checkpoint icon Check your progress

The following image shows the inventory. You are now ready to create an AI use case.

Inventory

Task 2b: Create an AI use case

This tutorial uses OpenPages to create and manage AI use cases. If you are not using OpenPages, then refer to Setting up an AI use case for the steps to create a use case without OpenPages.

An AI use case is a defined business problem that you can solve with the help of AI. Usually these are defined before any AI asset gets developed. Follow these steps to create an AI use case with OpenPages:

  1. Click New AI use case.

  2. For the Name, copy and paste the following text:

    Insurance claims processing AI use case
    
  3. For the Owner field, select your user name.

  4. For the Description and for the Purpose, type:

    Use case for evaluating the prompt templates for insurance claims processing for Golden Bank
    
  5. For the Primary Business Entity, click Add.

    1. Select Catalogs.

    2. Click Done.

  6. Click Save.

  7. In the Third Party Link field, click the link to open the AI use case in the watsonx user interface.

Checkpoint icon Check your progress

The following image shows the AI use case. You are now ready to track the prompt template.

AI use case

Task 2c: Associate the workspaces with the use case

Follow these steps to associate the workspaces with this use case:

Note: You can create new projects and deployment spaces from within the AI use case.
  1. Scroll to the Associated workspaces section.
  2. Under the Development phase, click Associate workspace.
    1. Select the Getting started with watsonx.governance project.
    2. Click Save.
  3. Under the Validation phase, click Associate workspace.
    1. Select the Validation project.
    2. Click Save.
  4. Under the Operation phase, click Associate workspace.
    1. Select Insurance claims deployment space.
    2. Click Save.

Checkpoint icon Check your progress

The following image shows the AI use case with all associated workspaces.

AI use case

Task 3


The sample project contains a few prompt templates and CSV files used as test data. Follow these steps to review and evaluate one of the sample prompt templates:

Task 3a: Edit the sample prompt template in the Prompt Lab

View the prompt template to see how it is structured.

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.

  2. Select the Getting started with watsonx.governance project.

  3. Click the Assets tab.

  4. Click Insurance claim summarization to open the prompt template in Prompt Lab, and then click Edit.

  5. Click the Prompt variables icon Prompt variables.

    Note: To run evaluations, you must create at least one prompt variable.
  6. Scroll to the Try section. Notice the {input} variable in the Input field. You must include the prompt variable as input for testing your prompt. A prompt variable is a placeholder keyword that you include in the static text of your prompt at creation time and replace with text dynamically at run time.

Checkpoint icon Check your progress

The following image shows the Prompt Lab.

The following image shows the Prompt Lab.

Task 3b: Evaluate the prompt template

Now you are ready to evaluate the prompt template.

  1. Click the Evaluate icon Evaluate.
  2. If prompted, click Associate a service instance to select the service to use for the evaluation.
    1. Select the appropriate service.
    2. Click Associate.
  3. Expand the Generative AI Quality section to see a list of dimensions. The available metrics depend on the task type of the prompt. For example, summarization has different metrics than classification.
  4. Click Next.
  5. Select the test data:
    1. Click Select from project.
    2. Select Project file > Insurance claim summarization test data.csv.
    3. Click Select.
    4. For the Input column, select Insurance_Claim.
    5. For the Reference output column, select Summary.
    6. Click Next.
  6. Click Evaluate. When the evaluation completes, you see the test results on the Evaluate tab.
  7. Click the AI Factsheet tab.
    1. View the information on each of the sections on the tab.
    2. Click Development > Getting started with watsonx.governance > Test results to see the test results again.

Checkpoint icon Check your progress

The following image shows the results of the evaluation. Now you can start tracking the prompt template in an AI use case.

Prompt template evaluation test results

Task 4


You can track your prompt template in an AI use case to report the development and test process to your peers. Follow these steps to start tracking the prompt template:

  1. On the AI Factsheet tab, click the Governance page.
  2. Click Track an AI use case.
  3. Notice that the associated AI use case is Insurance claims processing AI use case.
  4. Select an approach. An approach is one facet of the solution to the business problem represented by the AI use case. For example, you might create approaches to track several prompt templates in a use case.
  5. Click Next.
  6. If you are using OpenPages, you are prompted to define an asset record. Select New asset record, and click Next. Create AI use case in OpenPages
  7. For the model version, select Experimental.
  8. Accept the default value for the version number.
  9. Click Next.
  10. Review the information, and then click Track asset.
  11. When model tracking successfully begins, click the View details icon View details to open the AI use case.
  12. Click the Lifecycle tab to see the prompt template is in the Development phase. As the prompt template moves through the AI lifecycle, it will move through these phases:
    • Development phase: AI assets that have been developed in a project environment.
    • Validation phase: AI assets that have been deployed in a space or project for validation.
    • Operation phase: AI assets deployed in a space for operation.

Checkpoint icon Check your progress

The following image shows the Lifecycle tab in the AI use case with the prompt template in the Development phase. You are now ready to continue to the Validation phase.

The Lifecycle tab in the AI use case

Task 5


As noted in Task 1, typically, the prompt engineer evaluates the prompt with test data, and the validation engineer validates the prompt. The validation engineer has access to the validation data that prompt engineers might not have. In this case, validation data occurs in a different project. Follow these steps to export the development project and import those assets into the validation project that you created in Task 1 to move the asset into the Validation phase of the AI lifecycle:

Task 5a: Export the sample project

Follow these steps to export the development project:

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.
  2. Select the Getting started with watsonx.governance project.
  3. Click the Import/Export icon Import/Export > Export project.
  4. Check the box to select all assets.
  5. Click Export.
  6. Click Continue export to acknowledge that the assets might contain credentials.
  7. Wait to be prompted for the project file name, and type validation-project.zip, and then click Save.
  8. When the project export completes, click Back to project.

Checkpoint icon Check your progress

The following image shows the Export project page.

Export project page

Task 5b: Import the assets into the validation project

Follow these steps to import the assets from the development project into the validation project:

  1. From the Navigation Menu Navigation menu, choose Projects > All projects.
  2. Open the Validation project.
  3. Click the Import/Export icon Import/Export > Import project.
  4. Click Browse.
  5. Select the validation-project.zip, and click Open.
  6. Select the option to indicate agreement: I understand that some types of assets overwrite existing asets with the same name and type.
  7. Click Import.
  8. When the assets import successfully, click the Refresh icon Refresh to see the imported assets.

Checkpoint icon Check your progress

The following image shows the validation project Assets tab. You are now ready to evaluate the sample prompt template in the validation project.

Validation project assets

Task 6


Now you are ready to evaluate the prompt template in this validation project using the same evaluation process as before. Use the same test data set for evaluation. And select the same Input and Output columns as before. Follow these steps to validate the prompt template:

  1. Click the Assets tab in the Validation project.
  2. From the Overflow menu overflow menu for the Insurance claim summarization prompt template, select Evaluate.
  3. Click Evaluate to start the evaluation.
  4. Repeat the steps in Task 3a: Evaluate the prompt template to evaluate the Claims processing summarization prompt template in the Validation project.
  5. Click the AI Factsheet tab when the evaluation is complete.
  6. View both sets of test results:
    1. Click Development > Getting started with watsonx.governance > Test results.
    2. Click Validation > Validation project > Test results.

Checkpoint icon Check your progress

The following image shows the validation test results. You are now ready to promote the prompt template to a deployment space, and then deploy the prompt template.

Prompt template evaluation test results

Task 7


To deploy the prompt template, you need promote it the deployment space that you created in Task 1. Then, in the deployment space, you can create a deployment and test the deployed prompt template.

Task 7a: Promote the prompt template to a deployment space

You promote the prompt template to a deployment space in preparation for deploying it. Follow these steps to prompte the prompt template:

  1. Click Validation project project in the navigation trail to return to the Assets tab.

    Validation project navigation trail

  2. From the Overflow menu overflow menu for the Insurance claim summarization prompt template, select Promote to space.

  3. For the Target space, select the Insurance claims deployment space deployment space from the list.

  4. Check the option to Go to the space after promoting the prompt template.

  5. Click Promote.

Checkpoint icon Check your progress

The following image shows the prompt template in the deployment space. You are now ready to create a deployment.

Prompt template in deployment space

Task 7b: Deploy the prompt template

Now you can create an online deployment of the prompt template from inside the deployment space. Follow these steps to create a deployment:

  1. From the Insurance claims summarization asset page in the deployment space, select New deployment.

  2. For the deployment name, copy and paste the following text:

    Insurance claims summarization deployment
    
  3. Click Create.

Checkpoint icon Check your progress

The following image shows the deployed prompt template.

Deployed prompt template

Task 7c: View the deployed prompt template

Follow these steps to view the deployed prompt template in its current phase of the lifecycle:

  1. View the deployment when it is ready. The API reference tab provides information for you to use the prompt template deployment in your application.
  2. Click the Test tab. The Test tab allows you to submit an instruction and Input to test the deployment.
  3. Click Generate. Close the results window.
  4. Click the AI Factsheet tab.
  5. Scroll down to the bottom of the AI Factsheet page, and click the arrow for more details.
  6. Review the information in the Development, Validation, and Operation phases for the AI Factsheet for the deployed prompt template.
  7. Scroll to the top of the page, and click the View details icon View details to open the AI use case.
  8. In the use case, click the Lifecycle tab. You can see that the prompt template is now in the Operation phase.
  9. Click the Insurance claim summarization prompt template in the Operation phase. When you are done, click Cancel.
  10. Click the Insurance claims summarization deployment prompt template deployment in the Operation phase. When you are done, click Cancel.

Checkpoint icon Check your progress

The following image shows the prompt template prompt template in the Operation phase of the lifecycle.

Prompt template in the Operation phase