The auto rule expression generation feature lets you create advanced pass conditions in Quality rules and pipelines by describing logic in plain English. This AI-powered capability interprets user intent and generates expressions, reducing manual effort.
This feature is available in the Basic and Advanced tab of the Pass conditions, Add Evaluated Rows Filter section in Create Rule page, and Condition tab in Step Configuration of a quality pipeline. Use the AI Assist button to generate expressions.
Benefits
To generate expressions in pass conditions:
- Go to .
- On the Rules page, click Create Rule.
- Select the target assets to evaluate, and then define pass conditions.
- Click the AI Assist button present beside the pass conditions section to open the expression generation panel.
- In the description box, enter your logic in plain English. Include details for the relevant datasets or fields.
- Click Generate. The application will
automatically generate an expression for the pass condition
based on the inputs.Tip: If the generated pass condition doesn't produce the desired outcome, you may revise the prompt and select Generate to create a new pass condition based on the specified parameters. Once the expression meets your requirements, you can either copy the generated expression or select Apply to implement the pass condition within the rule.
- Click Create to save the rule with the generated expression and other details.
AI generated test data to validate rule expressions
To validate test data generated by expressions in the row filters or pass conditions in the rules page:
- Define the conditions in the rows filter or pass conditions on the Create Rule page.
- Click Test with AI Generated Data.
- The conditions in the filters are evaluated, and the sample data is generated.
- The Test with AI Generated Data page displays the
following details:
- Expression using which the data is generated.
- Generated data: The generated data is
presented in a tabular format. The Result column
is fixed and indicates whether each value has
satisfied the specified conditions and passed or
did not meet the defined conditions and failed.
All other columns on the table will be displayed
as per the expression. Tip: The sample displays a maximum of 20 records (10 Pass and 10 Fail), offering an accurate representation of how the conditions are evaluated.
- The data in each of the columns in the table can be sorted as needed.
Once you are satisfied with the generated sample, you can proceed with the next steps of creating the rule. If you notice any discrepancies in the generated sample, you can modify the conditions in the filter and regenerate the sample data.