These parameters are supported when 'api_type' is set to aws, azure, gcp, or nim.
| Name | Required or Optional | Description | Type | Default Value | Permitted Values |
|---|---|---|---|---|---|
| column | Required | Specifies the column of the teradataml DataFrame. | string | N/A | N/A |
| data | Required | Specifies the teradataml DataFrame containing the column specified in "column". | teradataml DataFrame | N/A | N/A |
| persist | Optional | Specifies whether to persist the output or not. When set to True, results are stored in permanent tables, otherwise in volatile tables. | boolean | False | True, False |
| accumulate | Optional | Specifies the names of input teradataml DataFrame columns to copy to the output. By default, the method copies no input teradataml DataFrame columns to the output. | string or list of strings | All columns | Valid column from 'data' DataFrame. |
| data_partition_column | Optional | Specifies the column used to partition the the 'data' for processing. | string | Non | Valid column from 'data' DataFrame. |
| is_debug | Optional | Specifies whether to enable error logging. | boolean | False | True/False |
| volatile | Optional | Specifies whether to put the results of the function in a volatile table or not. When set to True, results are stored in a volatile table, otherwise not. | boolean | False | True/False |
| lang | Optional | Specifies the languages for detection. If no specific language is provided, the method will attempt to automatically detect the language of the text to the best of its ability. It can also detect languages that are not specified in the parameter. | string | N/A | N/A |
| show_num_tokens | Optional | Specifies whether to display token information in the query output. If set to True, it includes input and output token counts in the result. | boolean | False | True/False |
| refresh_credential_time | Optional | Specifies the refresh interval, in seconds, for credentials used by AWS and Azure VMs when connecting to AWS Bedrock and Azure AI without requiring external credentials. Applicable only if "api_type" is 'azure' or 'aws'. | integer | 0 |
These parameters are supported when 'api_type' is set to hugging_face.
| Name | Required or Optional | Description | Type | Default Value | Permitted Values |
|---|---|---|---|---|---|
| column | Required | Specifies the column of the teradataml DataFrame. | string | N/A | N/A |
| data | Required | Specifies the teradataml DataFrame containing the column specified in "column". | teradataml DataFrame | N/A | N/A |
| persist | Optional | Specifies whether to persist the output or not. When set to True, results are stored in permanent tables, otherwise in volatile tables. | boolean | False | True, False |
| returns | Optional |
|
dictionary | N/A | N/A |
| script | Optional | Specifies the user defined script for inferencing. Use this argument to configure the model to process the input and output. The sample script uses the following mechanism to load and use the model:
|
string | N/A | N/A |
| output_labels | Optional |
|
dictionary | N/A | N/A |
| delimiter | Optional | Specifies a delimiter to use when reading columns from a row and writing result columns. Delimiter must be a valid Unicode code point.
|
string | comma (,) | N/A |
| quotechar | Optional | Specifies the character used to quote all input and output values for the script. "quotechar" value cannot be the same as "delimiter".
|
string | double quote (") | N/A |
| task | Optional |
|
string | N/A | N/A |
| libs | Optional | Specifies the add-on Python library names to be installed. | string or list of strings | N/A | N/A |
| pipeline_kwargs | Optional | Specifies any extra parameters which needs to be supplied to the 'pipeline' function of transformers module. This can be used in both sample script and user defined script. Refer to the notes in "script" parameter on usage. | dictionary | N/A | N/A |