OBLYTECH Logo
OBLYTECH Logo

Test a Similarity Solution Prediction in Predictive Intelligence

To test a similarity solution prediction, use REST API Explorer to call a trained Predictive Intelligence solution with text from its configured input fields. Request a small set of similar records, inspect the returned IDs, and open those incidents to judge whether their resolution notes help with the original issue.

Prepare the solution and the test case

Start with a trained machine-learning solution. For this prediction test, the required role is web_service_admin, rest_api_explorer, admin, or ml_admin. This role requirement applies to the testing procedure; it does not establish the permissions needed for separate configuration or training work.

Open All > Predictive Intelligence > Similarity > Solution Definitions. Find the solution definition you intend to test and capture its Name and Input Fields values. Keep that record available while preparing the request. A descriptive record title helps you locate a solution, but the request needs the Name value.

For a resolved-incident recommendation scenario, the example solution name is ml_x_snc_global_recommended_resolved_incidents. Treat it as an example rather than a value to paste into an unrelated instance. Check the solution, field names, and navigation on your instance and release before following the sequence.

If the configuration is unfamiliar, review the relationship between machine-learning solution definitions and the model you intend to exercise. Testing the wrong definition can produce plausible recommendations while answering a different question from the one your team needs resolved.

Choose an input that represents a real support question. For example, a technician might describe a discovery failure affecting a particular device. Write down what a helpful resolved incident would contain before sending the request. This gives the review a purpose beyond checking that a response appears.

Test similarity solution prediction with REST API Explorer

Duplicate the browser tab so the definition remains visible in the original tab. In the duplicate, open System Web Services > REST > REST API Explorer and select Explore. Keeping the definition beside the request reduces transcription mistakes when you compare the solution name and input field.

  1. Leave Namespace set to now.
  2. Select Predictive Intelligence for API Name.
  3. Leave API Version at latest.
  4. Enter the definition’s Name value in the solution-name Value field.
  5. Select Add query parameter to prepare the input for the prediction.

The solution name selects the model you are asking to make a prediction. The input parameter supplies the text to compare. Keep these two responsibilities distinct when reviewing a request: a correctly spelled field does not compensate for selecting an unintended solution.

Before sending anything, compare the request against the definition again. Check the complete Name value rather than its recognizable ending. Then check that the input field belongs to the solution you opened. These are inexpensive checks to perform before investigating the relevance of the results.

Match the input field and limit the returned candidates

In Query parameters, put the configured input field name in the first field and the test text in the second. For a solution trained with Short description, the example parameter is short_description. The corresponding value is text describing the incident, such as a discovery error.

Use a field that the solution was trained to use. Description or Resolution notes can also serve as test inputs when they belong to the solution being tested. Do not assume that switching a parameter to a different field is a neutral change; it changes the information you are submitting for comparison.

Use the [+] button to add another query condition. Enter top_n as its name and 3 as its value. This requests the three most similar incident records in the example. The parameter controls the requested result count, so assess relevance separately from the size of the returned set.

Select Send to submit the call. In Response body, capture the outcome values returned by the API. Keep the original input text beside those outcomes in your test notes. Without that pairing, a later reviewer cannot tell which wording produced a particular set of recommendations.

For a first pass, keep the input focused on one issue. A long description containing several unrelated symptoms makes the review harder: the candidates may resemble one part of the text while offering little help with the issue you intended to investigate.

Trace the prediction back to incident records

Return to the original browser tab and open Servicedesk > Incidents. Use the list filter to add the Active and Sys ID conditions for the resolved-incident review. Place the returned outcome values in the input for the Sys ID condition, then select Run.

Check that the records shown correspond to the IDs captured from the response. Keep the filter’s treatment of resolved incidents consistent with your test scenario. An unrelated filter condition can hide a returned incident and make a record lookup problem look like a prediction problem.

Open each candidate through its Incident Number and read its Resolution notes. Compare the resolved issue with the text you submitted. Look for a connection between the symptom, the circumstances, and the action that resolved it. A familiar phrase in a short description is insufficient evidence that the recorded fix fits.

For example, two incidents may mention discovery errors while involving different systems or causes. During review, explain whether the candidate gives the technician a relevant next investigation or merely repeats the symptom. This judgment helps distinguish a readable recommendation from one worth acting on.

Keep recommendations separate from duplicate decisions. If your eventual workflow involves duplicate-ticket detection using similarity matching, assess what evidence that workflow needs before treating a similar resolved incident as the same underlying issue.

Build a repeatable review before relying on recommendations

A single successful request establishes a starting point. Build a small review set around the support situations the solution is intended to assist. Include straightforward descriptions, shorter descriptions, and cases where shared vocabulary could be misleading. These are suggested review choices, not additional REST API Explorer settings.

For each case, preserve the solution name, input field, submitted text, requested result count, returned IDs, and the reviewer’s reason for accepting or rejecting a candidate. Record the reasoning in plain language. “Same symptom, different cause” provides more direction than an unexplained pass or fail.

Change one test input at a time when investigating a weak recommendation. First repeat with clearer wording while keeping the selected solution and field constant. If you then change the solution or input field, record that as a separate comparison. Otherwise, you lose the ability to explain why the candidates changed.

Use disagreements between reviewers to clarify the intended outcome. One technician may value a candidate that suggests an investigation; another may expect a directly reusable resolution. Agree on that expectation before judging the solution. The test should measure the help you want people to receive.

If the review points toward definition changes, return to Predictive Intelligence solution configuration. If the question is how to establish the similar-records use case, use the guide to creating a similar-records prediction model. Keep those changes separate from the evidence collected during this test.

Before closing the review, identify which cases need another attempt and which support a decision. Assign a clear next action to unresolved cases so uncertainty does not disappear when the test notes change hands.

For help planning this work, see ServiceNow implementation.

Questions about reviewing similarity test evidence

Should reviewers see the expected answer before assessing candidates?

Consider collecting an initial independent judgment first, then comparing it with the expected outcome. This can expose assumptions in the test case. Preserve both judgments when they differ so the team can explain whether the disagreement concerns the model or the review criteria.

How should a team handle incomplete resolution notes?

Mark the candidate as difficult to assess and explain what information is missing. Avoid converting an undocumented resolution into a confident positive or negative judgment. Separating incomplete evidence from clearly irrelevant recommendations makes the review record easier to interpret.

What should be included in a handoff to another tester?

Include the test purpose, the captured request and response details, and the reasoning behind the review decisions. Identify unresolved questions explicitly. The next tester should be able to repeat the comparison without guessing what the previous reviewer considered a helpful result.

When is a test case ready to become a regression check?

Use a case once its input, intended use, and evaluation criteria are stable enough for another reviewer to understand. Keep ambiguous cases for discussion until the team resolves their meaning. A repeatable check needs an agreed interpretation as well as preserved request details.