If you are writing a tests.json, here are a few valid configurations for the character length test:
Copy
Ask AI
[ { "name": "Total tokens below 20,000", "description": "Make sure that the total number of tokens on the dataset is below 20,000", "type": "performance", "subtype": "metricThreshold", "thresholds": [ { "insightName": "metrics", "insightParameters": null, "measurement": "totalTokens", "operator": "<", "value": 20000 } ], "subpopulationFilters": null, "mode": "development", "usesValidationDataset": true, // Apply test to the validation set "usesTrainingDataset": false, "usesMlModel": false, "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689" // Some unique id }]