Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Using the rule_config/{scope}/{field_name} endpoint and this payload:

{
  "type": "document_type",
  "rules": [
    {
      "confidence": 100,
      "rule_type": [
        "first", # other options: next, last
      ],
      "+rule": [
        "L:THIS RULE MATCHES ONLY FOR EXAMPLE DOCTYPE"
      ]
    }
  ]
}

This should look like this:

image-20240709-184047.png

Here is what the end result should look like, once present in the predictor settings:

{
  "scope": "Overall",
  "key_value_pairs": {
    "rule_config": {
      "EXAMPLE_DOCUMENT_TYPE": {
        "type": "document_type",
        "rules": [
          {
            "confidence": 100,
            "rule_type": [
              "first", # other options: next, last
            ],
            "+rule": [
              "L:THIS RULE MATCHES ONLY FOR EXAMPLE DOCTYPE"
            ]
          }
        ]
      }
    }
  }
}
  • No labels