If you are writing a tests.json, here are a few valid configurations for the character length test:
Copy
Ask AI
[ { "name": "Mean number of tokens below 1500", "description": "Make sure that the average response has less than 1500 tokens", "type": "performance", "subtype": "metricThreshold", "thresholds": [ { "insightName": "metrics", "insightParameters": null, "measurement": "meanTokens", "operator": "<", "value": 1500 } ], "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 }]