Skip to main content

AI Wrangles

AI wrangles, with recipe examples, parameters, and behavior.

Classify​

Run classify wrangles on the specified columns. Requires WrangleWorks Account and Subscription.

Run a custom classification wrangle on the specified column or columns. A classification wrangle must be trained first.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column.string, array—Yes
Formatting
include_confidenceFor models that support it, include the confidence level in the output.boolean—No
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No
Details
model_idID of the classification model to be used.string—Yes

Examples​

wrangles:
- classify:
input: Products
output: Category
model_id: ${model_id}
where: Products = Milk
Products
Rice
Milk
Category
Dairy
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountYes
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID71
Catalog keyclassify
Recipe keyclassify
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupai
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.classify
Legacy UUID06669ef8-cdd1-42f7-8078-98e0b7a42c30

Sources


Huggingface​

Use a model from huggingface.

Use a model from huggingface

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column. If not provided, will overwrite the input column.string, array, nullnullNo
Options
parametersOptionally, provide additional parameters to define the model behaviour.object, nullnullNo
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No
Details
api_tokenHuggingface API Token.string—Yes
modelName of the model to use. e.g. facebook/bart-large-cnn.string—Yes

Examples​

This template uses a Hugging Face summarization model. The exact response shape and text depend on the selected model.

wrangles:
- huggingface:
input:
- Product Description
output:
- Summary
api_token: Your Hugging Face API token
model: facebook/bart-large-cnn
Product Description
A cordless drill with two batteries, a charger, and a compact carrying case.
Summary
Cordless drill kit with batteries, charger, and case.

Template based on the documented parameters; no published source example is currently available.

Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID79
Catalog keyhuggingface
Recipe keyhuggingface
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupai
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.huggingface
Legacy UUIDae12cf20-4934-428f-84a9-a6898cb7ffe0

Sources