You must provide payload data to configure drift v2 and generative AI quality evaluations in watsonx.governance.
Payload data contains all of your model transactions. You can log payload data with watsonx.governance to enable evaluations. To log payload data, watsonx.governance must receive scoring requests.
Logging payload data
Copy link to section
When you send a scoring request, watsonx.governance processes your model transactions to enable model evaluations. Watsonx.governance scores the data and stores it as records in a payload logging table within the watsonx.governance data mart.
The payload logging table contains the following columns when you evaluate prompt templates:
Required columns:
Prompt variable(s): Contains the values for the variables that are created for prompt templates
generated_text: Contains the output that's generated by the foundation model
Optional columns:
input_token_count: Contains the number of tokens in the input text
generated_token_count: Contains the number of tokens in the generated text
prediction_probability: Contains the aggregate value of log probabilities of generated tokens that represent the winning output
The table can also include timestamp and ID columns to store your data as scoring records.
You can view your payload logging table by accessing the database that you specified for the data mart or by using the Python SDK as shown in the following example:
Sending payload data
Copy link to section
If you are using IBM watsonx.ai Runtime as your machine learning provider, watsonx.governance automatically logs payload data when your model is scored.
After you configure evaluations, you can also use a payload logging endpoint to send scoring requests to run on-demand evaluations. For production models, you can also upload payload data with a CSV file to send scoring requests. For more information
see, Sending model transactions.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.