Set up TF-IDF for Predictive Intelligence solutions by adding the Use tf-idf to generate vectors parameter to a solution definition. The setting works with classification, clustering, and similarity. Consider it when records hold text made by machines, such as alerts or log errors. Then check whether it improves predictions for your case.
Choose TF-IDF predictive intelligence solutions by their input text
TF-IDF stands for Term Frequency–Inverse Document Frequency. It is a way to encode the text that a Predictive Intelligence solution reads. Start with the records the solution will receive, not with a liking for one method. Advanced solution settings are optional. A clear reason for changing the encoding makes the work easier to judge.
Classification and similarity use paragraph vector word embedding by default. That method suits data that people write for other people to read. TF-IDF may give better predictions when the text comes from machines, such as alerts and error messages in log files. That is a reason to run a comparison. It is not a promise that the parameter will improve a given solution.
Start by reading sample input records. Sort human descriptions from repeated system messages and mixed records. For example, an incident may hold a person’s note next to a copied error. Decide which kind of content matters to the prediction you need. Keep that decision in your evaluation notes so the reason outlasts the person who made the change.
For the wider setup steps, use the Predictive Intelligence solution configuration guide. Tie this encoding choice to a named solution and a business question, such as finding related records or assigning a category.
Prepare the definition, access, and comparison
Create a classification, clustering, or similarity solution definition, or pick an existing one. The role you need to set up TF-IDF is admin or ml_admin. Check that you have this access before you start the parameter entry. Identify the right definition well enough to tell it from other solutions with similar names.
TF-IDF support for clustering solution definitions needs a Professional subscription. Check your subscription, the screens you have, and the behavior on your instance and release before you go on. The steps are the same for all three supported frameworks. The similarity example below does not limit the setting to similarity.
Before you change anything, record the definition name, its purpose, the input records under review, and the settings already there. These notes give a reviewer something concrete to compare later. If you still have not chosen the definition, work through machine learning solution definitions before you adjust its encoding.
Plan a focused comparison. Pick sample records, describe what a good prediction looks like, and keep the current results as a baseline. Where you can, keep unrelated setting changes out of this comparison. If not, it is hard to link a change in results to TF-IDF, and an apparent gain may have another cause.
Add the TF-IDF parameter to the solution
Open the solution definition you plan to set up. For similarity, the menu path is All > Predictive Intelligence > Similarity > Solution Definitions. Select the definition, then work through the advanced setting record. Check which definition you have open before you save, most of all when you test several related solutions.
- On the solution definition form, find the Advanced Solution Settings tab in the Related Links section and click New.
- Start the parameter record. In Solution Parameters, use the search icon to open the parameter list.
- In ML Solution Parameters, choose Use tf-idf to generate vectors.
- Click Submit. The Advanced Solution Setting record screen refreshes.
- Click Submit on that record screen to finish the entry.
Both submits are part of the steps. Picking the parameter is only a middle step. Finish the advanced setting record too. In the similarity example, the parameter then shows on the definition’s Advanced Solution Settings tab. Use what you see there as the first check that the setting was saved.
Write a short change note when the form is done. Say which definition got the parameter and why machine text made the trial worth it. Do not call the change a better prediction yet. Entering a setting and showing better results are two separate jobs.
Verify the saved setting before judging results
Go back to the right definition and look at its advanced settings. Look for the TF-IDF parameter you chose and match the definition against your preparation notes. This catches a simple but costly mistake. A correct parameter on the wrong definition does not finish the change.
If the parameter is missing, go over the entry steps, including both submits. If you cannot reach the form or the parameter list, check your access and the framework needs you already noted. Record the screen and step where you got stuck. Do not add unrelated settings to try to make the option show up.
A saved parameter proves the setting is in place. It does not prove that prediction quality went up. Plan the next evaluation of the solution on its own, with a person in charge of reviewing the outcome. Keep the saved-setting proof and the prediction examples together. A reviewer can then see what changed and what happened after.
For issues that go beyond this parameter entry, use the Predictive Intelligence troubleshooting guide. Describe the problem you see in exact terms. A missing setting, an access block, and weak predictions each call for a different check.
Evaluate machine-generated records without losing context
Build the review around the framework you use. For classification, ask whether the proposed category fits the record. For similarity, check whether the related records help answer the user’s question. For clustering, check whether the groups make sense for the analysis. These are suggested review questions, not more TF-IDF settings.
Include cases where machine messages look alike but describe different events. A repeated error phrase may sit next to a real difference in the rest of the record. Also include cases where different words describe a related problem. Reviewing both keeps you from deciding on a few handy, convincing examples.
Decide how reviewers will log disagreements before they start. A short worksheet can list the example, the expected result, the result you saw, and the reason to accept or reject it. Ask reviewers to tell a wrong result from an example with an unclear right answer. Settle those unclear examples with the business owner before you use them to pick an encoding. If not, clashing expectations can look like a model problem and lead to repeated setting changes with no steady way to judge them.
Mixed text needs its own sample. If people add long notes to alerts, test those records next to the shorter machine messages. An encoding that helps one part of the input may look weaker elsewhere. Record those differences. Do not shrink the review to one good example.
For help planning this work, see ServiceNow implementation.
End the comparison with a written decision: keep the method for the case you tested, look into unclear results, or rethink the encoding choice. Keep the examples and the reasons with the decision. Future reviewers can then revisit the setting when the type of input text changes.
Questions to settle before handing over the change
Should raw log messages be copied into the change notes?
Prefer a record reference and a short description when that is enough for review. If examples hold sensitive operational details, follow your organization’s rules for handling them. The evaluation needs traceable evidence, but the change note should not become a second store of full production messages.
Who should assess whether similar records are helpful?
Choose someone who knows the work those records support. A platform administrator can verify the parameter entry. A service owner or experienced resolver can judge whether the suggested relationships help the task. Agree on that reviewer before you collect the comparison results.
What should a handover say when results are inconclusive?
List the open cases and the next evidence you need. For example, ask for more examples of one message family. Do not write down a broad claim of success. An unclear result can still give a clear next step and an owner who answers for it.
How much detail belongs in the final decision?
Give enough detail for another owner to follow the choice: the workload you studied, how you compared, open exceptions, and who follows up. Keep the advice tied to the definition you tested. Do not turn it into a general rule for unrelated solutions.
When should the evaluation be revisited?
Plan another review when the input mix changes, such as a new alert source or a different style of human notes. Treat this as an operating recommendation. The first comparison describes the records checked at that time. It should not stand in for a look at a very different workload.