Data Quality Agent > Data quality rule generation > Sample conversation
  

Sample conversation

Let's take a look at a sample conversation to help you get started on your Data Governance and Catalog data quality rule generation journey in CLAIRE GPT.
As a data steward working in a retail organization, you want to generate rule specifications to define clear standards and policies to govern your customer data. You have a file that contains rule descriptions, and you ask the agent to generate rule specifications from the rule descriptions.
To achieve the goal, perform the following steps:
  1. 1Log in to CLAIRE GPT.
  2. 2Start a conversation to identify how the data quality agent can generate data quality rules from the rule descriptions saved in a file.
  3. Enter the following prompt:
    I want to generate rules from a file. How can you help me?
  4. The following image shows the response displaying a detailed plan on how the agent can generate rules from a file.The response displays steps on how the data quality agent uses the data quality rule generation skill to generate rule specifications from your file. The steps include creating a detailed plan for rule generation, sharing the plan with you, and generating rules after your confirmation.
  5. 3Upload the demo_rules_spec4.xlsx file that contains rule descriptions.
  6. The following image shows the response displaying some sample rules from the file along with the generation of a detailed plan for data quality rules by the agent. The response displays eight sample rules based on accuracy and validity that the agent extracted from the file. You can also see the data quality rule generation plan steps that include rule specification validation, cluster rule specifications, generate test data of rules, and so on.
  7. 4If you are happy with the proposed rule generation plan, enter the following prompt:
  8. Yes, proceed with the plan.
    The data quality rule generation skill of the agent validates the rules and checks for existing rules with the same logic in Data Quality. The agent groups rules with logically identical descriptions into clusters and creates a single rule for each cluster in the file. The agent then generates rule scripts and corresponding test data for each rule, executes tests for each rule, and provides a comprehensive summary of the generated rule specifications.
    The following image shows the data quality rules that the agent generated from the uploaded file.The response displays rules that the agent generated based on business requirements and data patterns from the file you uploaded.
    You can switch to Detail View to see the details of each generated rule specification.
    You can download the data as a CSV file or copy the data to another file.
  9. 5To view a summary of rule specifications that the agent generated, you can click the card named Data Quality Rules Agent Log.
  10. The following image shows the canvas with a summary of the rule specifications that the agent generated.The response displays a summary of generated rules, distribution of rules across different data quality dimensions, and rules that the agent could not generate.
  11. 6If you are happy with the rule specifications that the agent generated and want to publish them in Data Quality, enter the following prompt:
  12. Publish Rules
    To view the published rule specifications, you can click the card named Published DQ Rules.
    The following image shows the canvas with a view of the rule specifications that the agent published.The response displays published rule specifications with rule names and descriptions.
    You can open the rule specifications in Data Quality and view them in the CLAIRE folder within the CLAIRE project.
Using the data quality rule generation skill of the data quality agent, CLAIRE GPT has analyzed the rule description in an uploaded file, extracted rules from the file, generated rule specifications, and published them in Data Quality.