teradataml 20.0.0.4__py3-none-any.whl → 20.0.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of teradataml might be problematic. Click here for more details.
- teradataml/LICENSE-3RD-PARTY.pdf +0 -0
- teradataml/README.md +182 -13
- teradataml/__init__.py +2 -1
- teradataml/_version.py +2 -2
- teradataml/analytics/analytic_function_executor.py +8 -13
- teradataml/analytics/json_parser/analytic_functions_argument.py +4 -0
- teradataml/analytics/sqle/__init__.py +16 -1
- teradataml/analytics/utils.py +60 -1
- teradataml/automl/__init__.py +290 -106
- teradataml/automl/autodataprep/__init__.py +471 -0
- teradataml/automl/data_preparation.py +29 -10
- teradataml/automl/data_transformation.py +11 -0
- teradataml/automl/feature_engineering.py +64 -4
- teradataml/automl/feature_exploration.py +639 -25
- teradataml/automl/model_training.py +1 -1
- teradataml/clients/auth_client.py +12 -8
- teradataml/clients/keycloak_client.py +165 -0
- teradataml/common/constants.py +71 -26
- teradataml/common/exceptions.py +32 -0
- teradataml/common/messagecodes.py +28 -0
- teradataml/common/messages.py +13 -4
- teradataml/common/sqlbundle.py +3 -2
- teradataml/common/utils.py +345 -45
- teradataml/context/context.py +259 -93
- teradataml/data/apriori_example.json +22 -0
- teradataml/data/docs/sqle/docs_17_20/Apriori.py +138 -0
- teradataml/data/docs/sqle/docs_17_20/NERExtractor.py +121 -0
- teradataml/data/docs/sqle/docs_17_20/NGramSplitter.py +3 -3
- teradataml/data/docs/sqle/docs_17_20/SMOTE.py +212 -0
- teradataml/data/docs/sqle/docs_17_20/TextMorph.py +119 -0
- teradataml/data/docs/sqle/docs_17_20/TextParser.py +54 -3
- teradataml/data/docs/uaf/docs_17_20/ACF.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/ArimaEstimate.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/ArimaXEstimate.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/DFFT.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFT2.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFT2Conv.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFTConv.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/FilterFactory1d.py +4 -4
- teradataml/data/docs/uaf/docs_17_20/GenseriesSinusoids.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/GoldfeldQuandt.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/HoltWintersForecaster.py +6 -6
- teradataml/data/docs/uaf/docs_17_20/LineSpec.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/LinearRegr.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/Matrix2Image.py +4 -4
- teradataml/data/docs/uaf/docs_17_20/MultivarRegr.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/PACF.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/PowerSpec.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/PowerTransform.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/Resample.py +5 -5
- teradataml/data/docs/uaf/docs_17_20/SAX.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/SignifPeriodicities.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/SimpleExp.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/Smoothma.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/UNDIFF.py +1 -1
- teradataml/data/jsons/byom/onnxembeddings.json +1 -0
- teradataml/data/jsons/sqle/17.20/NGramSplitter.json +6 -6
- teradataml/data/jsons/sqle/17.20/TD_Apriori.json +181 -0
- teradataml/data/jsons/sqle/17.20/TD_NERExtractor.json +145 -0
- teradataml/data/jsons/sqle/17.20/TD_SMOTE.json +267 -0
- teradataml/data/jsons/sqle/17.20/TD_TextMorph.json +134 -0
- teradataml/data/jsons/sqle/17.20/TD_TextParser.json +114 -9
- teradataml/data/jsons/sqle/20.00/AI_AnalyzeSentiment.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_AskLLM.json +420 -0
- teradataml/data/jsons/sqle/20.00/AI_DetectLanguage.json +343 -0
- teradataml/data/jsons/sqle/20.00/AI_ExtractKeyPhrases.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_MaskPII.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_RecognizeEntities.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_RecognizePIIEntities.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_TextClassifier.json +359 -0
- teradataml/data/jsons/sqle/20.00/AI_TextEmbeddings.json +360 -0
- teradataml/data/jsons/sqle/20.00/AI_TextSummarize.json +343 -0
- teradataml/data/jsons/sqle/20.00/AI_TextTranslate.json +343 -0
- teradataml/data/jsons/sqle/20.00/TD_SMOTE.json +2 -2
- teradataml/data/jsons/sqle/20.00/TD_VectorDistance.json +1 -1
- teradataml/data/ner_dict.csv +8 -0
- teradataml/data/ner_input_eng.csv +7 -0
- teradataml/data/ner_rule.csv +5 -0
- teradataml/data/pattern_matching_data.csv +11 -0
- teradataml/data/pos_input.csv +40 -0
- teradataml/data/sdk/modelops/modelops_spec.json +101737 -0
- teradataml/data/tdnerextractor_example.json +14 -0
- teradataml/data/teradataml_example.json +21 -1
- teradataml/data/textmorph_example.json +5 -0
- teradataml/data/to_num_data.csv +4 -0
- teradataml/data/tochar_data.csv +5 -0
- teradataml/data/trans_dense.csv +16 -0
- teradataml/data/trans_sparse.csv +55 -0
- teradataml/data/url_data.csv +10 -9
- teradataml/dataframe/copy_to.py +38 -27
- teradataml/dataframe/data_transfer.py +61 -45
- teradataml/dataframe/dataframe.py +1110 -132
- teradataml/dataframe/dataframe_utils.py +73 -27
- teradataml/dataframe/functions.py +1070 -9
- teradataml/dataframe/sql.py +750 -959
- teradataml/dbutils/dbutils.py +33 -13
- teradataml/dbutils/filemgr.py +14 -10
- teradataml/hyperparameter_tuner/utils.py +4 -2
- teradataml/lib/aed_0_1.dll +0 -0
- teradataml/opensource/_base.py +12 -157
- teradataml/options/configure.py +24 -9
- teradataml/scriptmgmt/UserEnv.py +317 -39
- teradataml/scriptmgmt/lls_utils.py +456 -135
- teradataml/sdk/README.md +79 -0
- teradataml/sdk/__init__.py +4 -0
- teradataml/sdk/_auth_modes.py +422 -0
- teradataml/sdk/_func_params.py +487 -0
- teradataml/sdk/_json_parser.py +453 -0
- teradataml/sdk/_openapi_spec_constants.py +249 -0
- teradataml/sdk/_utils.py +236 -0
- teradataml/sdk/api_client.py +897 -0
- teradataml/sdk/constants.py +62 -0
- teradataml/sdk/modelops/__init__.py +98 -0
- teradataml/sdk/modelops/_client.py +406 -0
- teradataml/sdk/modelops/_constants.py +304 -0
- teradataml/sdk/modelops/models.py +2308 -0
- teradataml/sdk/spinner.py +107 -0
- teradataml/store/__init__.py +1 -1
- teradataml/table_operators/Apply.py +16 -1
- teradataml/table_operators/Script.py +20 -1
- teradataml/table_operators/query_generator.py +4 -21
- teradataml/table_operators/table_operator_util.py +58 -9
- teradataml/utils/dtypes.py +4 -2
- teradataml/utils/internal_buffer.py +22 -2
- teradataml/utils/utils.py +0 -1
- teradataml/utils/validators.py +318 -58
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/METADATA +188 -14
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/RECORD +131 -84
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/WHEEL +0 -0
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/top_level.txt +0 -0
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json_schema_major_version": "1",
|
|
3
|
+
"json_schema_minor_version": "2",
|
|
4
|
+
"json_content_version": "1",
|
|
5
|
+
"function_name": "AI_TextSummarize",
|
|
6
|
+
"function_version": "1.0",
|
|
7
|
+
"function_type": "fastpath",
|
|
8
|
+
"function_category": "Text Analytics AI",
|
|
9
|
+
"function_alias_name": "AITextSummarize",
|
|
10
|
+
"function_r_name": "aa.ai_textsummarize",
|
|
11
|
+
"supports_view": false,
|
|
12
|
+
"short_description": "This function is used to summarize the text in the specified column of a Teradata table. It generates an abstractive summary for the input using different levels. The conciseness of the summary can be adjusted using different levels. Higher levels yield more concise summaries.",
|
|
13
|
+
"long_description": "This function is used to summarize the text in the specified column of a Teradata table. It generates an abstractive summary for the input using different levels. The conciseness of the summary can be adjusted using different levels. Higher levels yield more concise summaries.",
|
|
14
|
+
"input_tables": [
|
|
15
|
+
{
|
|
16
|
+
"isOrdered": false,
|
|
17
|
+
"partitionByOne": false,
|
|
18
|
+
"name": "InputTable",
|
|
19
|
+
"alternateNames": [],
|
|
20
|
+
"isRequired": true,
|
|
21
|
+
"rDescription": "Specifies the table containing the input data.",
|
|
22
|
+
"description": "Specifies the table containing the input data.",
|
|
23
|
+
"datatype": "TABLE_ALIAS",
|
|
24
|
+
"allowsLists": false,
|
|
25
|
+
"rName": "data",
|
|
26
|
+
"useInR": true,
|
|
27
|
+
"rOrderNum": 1
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"argument_clauses": [
|
|
31
|
+
{
|
|
32
|
+
"name": "ApiBase",
|
|
33
|
+
"alternateNames": [],
|
|
34
|
+
"isRequired": false,
|
|
35
|
+
"rOrderNum": 2,
|
|
36
|
+
"allowNaN": false,
|
|
37
|
+
"description": "Specifies the LLM API base URL for azure.",
|
|
38
|
+
"rDescription": "Specifies the LLM API base URL for azure.",
|
|
39
|
+
"datatype": "STRING",
|
|
40
|
+
"allowsLists": false,
|
|
41
|
+
"allowPadding": true,
|
|
42
|
+
"rName": "api.base",
|
|
43
|
+
"useInR": true,
|
|
44
|
+
"rFormulaUsage": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "ApiKey",
|
|
48
|
+
"alternateNames": [],
|
|
49
|
+
"isRequired": false,
|
|
50
|
+
"rOrderNum": 3,
|
|
51
|
+
"allowNaN": false,
|
|
52
|
+
"description": "Specifies the LLM API Key for azure.",
|
|
53
|
+
"rDescription": "Specifies the LLM API Key for azure.",
|
|
54
|
+
"datatype": "STRING",
|
|
55
|
+
"allowsLists": false,
|
|
56
|
+
"allowPadding": true,
|
|
57
|
+
"rName": "api.key",
|
|
58
|
+
"useInR": true,
|
|
59
|
+
"rFormulaUsage": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "ApiVersion",
|
|
63
|
+
"alternateNames": [],
|
|
64
|
+
"isRequired": false,
|
|
65
|
+
"rOrderNum": 4,
|
|
66
|
+
"allowNaN": false,
|
|
67
|
+
"description": "Specifies the LLM API version for azure.",
|
|
68
|
+
"rDescription": "Specifies the LLM API version for azure.",
|
|
69
|
+
"datatype": "STRING",
|
|
70
|
+
"allowsLists": false,
|
|
71
|
+
"allowPadding": true,
|
|
72
|
+
"rName": "api.version",
|
|
73
|
+
"useInR": true,
|
|
74
|
+
"rFormulaUsage": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "DeploymentId",
|
|
78
|
+
"alternateNames": [],
|
|
79
|
+
"isRequired": false,
|
|
80
|
+
"rOrderNum": 5,
|
|
81
|
+
"allowNaN": false,
|
|
82
|
+
"description": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
83
|
+
"rDescription": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
84
|
+
"datatype": "STRING",
|
|
85
|
+
"allowsLists": false,
|
|
86
|
+
"allowPadding": true,
|
|
87
|
+
"rName": "deployment.id",
|
|
88
|
+
"useInR": true,
|
|
89
|
+
"rFormulaUsage": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "ModelName",
|
|
93
|
+
"alternateNames": [],
|
|
94
|
+
"isRequired": false,
|
|
95
|
+
"rOrderNum": 6,
|
|
96
|
+
"allowNaN": false,
|
|
97
|
+
"description": "Name of the large language model to be used for text analytics tasks.",
|
|
98
|
+
"rDescription": "Name of the large language model to be used for text analytics tasks.",
|
|
99
|
+
"datatype": "STRING",
|
|
100
|
+
"allowsLists": false,
|
|
101
|
+
"allowPadding": true,
|
|
102
|
+
"rName": "model.name",
|
|
103
|
+
"useInR": true,
|
|
104
|
+
"rFormulaUsage": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "ModelArgs",
|
|
108
|
+
"alternateNames": [],
|
|
109
|
+
"isRequired": false,
|
|
110
|
+
"rOrderNum": 7,
|
|
111
|
+
"allowNaN": false,
|
|
112
|
+
"description": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
113
|
+
"rDescription": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
114
|
+
"datatype": "STRING",
|
|
115
|
+
"allowsLists": false,
|
|
116
|
+
"allowPadding": true,
|
|
117
|
+
"rName": "model.args",
|
|
118
|
+
"useInR": true,
|
|
119
|
+
"rFormulaUsage": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "ApiType",
|
|
123
|
+
"alternateNames": [],
|
|
124
|
+
"isRequired": true,
|
|
125
|
+
"rOrderNum": 8,
|
|
126
|
+
"permittedValues": ["azure","aws","gcp","nim"],
|
|
127
|
+
"allowNaN": false,
|
|
128
|
+
"description": "Identification of the cloud platform.",
|
|
129
|
+
"rDescription": "Identification of the cloud platform.",
|
|
130
|
+
"datatype": "STRING",
|
|
131
|
+
"allowsLists": false,
|
|
132
|
+
"allowPadding": true,
|
|
133
|
+
"rName": "api.type",
|
|
134
|
+
"useInR": true,
|
|
135
|
+
"rFormulaUsage": false,
|
|
136
|
+
"rDefaultValue": null
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "AccessKey",
|
|
140
|
+
"alternateNames": [],
|
|
141
|
+
"isRequired": false,
|
|
142
|
+
"rOrderNum": 9,
|
|
143
|
+
"allowNaN": false,
|
|
144
|
+
"description": "Specifies the AWS Bedrock service access key.",
|
|
145
|
+
"rDescription": "Specifies the AWS Bedrock service access key.",
|
|
146
|
+
"datatype": "STRING",
|
|
147
|
+
"allowsLists": false,
|
|
148
|
+
"allowPadding": true,
|
|
149
|
+
"rName": "access.key",
|
|
150
|
+
"useInR": true,
|
|
151
|
+
"rFormulaUsage": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "SecretKey",
|
|
155
|
+
"alternateNames": [],
|
|
156
|
+
"isRequired": false,
|
|
157
|
+
"rOrderNum": 10,
|
|
158
|
+
"allowNaN": false,
|
|
159
|
+
"description": "Specifies the AWS Bedrock service secret key.",
|
|
160
|
+
"rDescription": "Specifies the AWS Bedrock service secret key.",
|
|
161
|
+
"datatype": "STRING",
|
|
162
|
+
"allowsLists": false,
|
|
163
|
+
"allowPadding": true,
|
|
164
|
+
"rName": "secret.key",
|
|
165
|
+
"useInR": true,
|
|
166
|
+
"rFormulaUsage": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "SessionKey",
|
|
170
|
+
"alternateNames": [],
|
|
171
|
+
"isRequired": false,
|
|
172
|
+
"rOrderNum": 11,
|
|
173
|
+
"allowNaN": false,
|
|
174
|
+
"description": "Specifies the AWS bedrock service session key.",
|
|
175
|
+
"rDescription": "Specifies the AWS bedrock service session key.",
|
|
176
|
+
"datatype": "STRING",
|
|
177
|
+
"allowsLists": false,
|
|
178
|
+
"allowPadding": true,
|
|
179
|
+
"rName": "session.key",
|
|
180
|
+
"useInR": true,
|
|
181
|
+
"rFormulaUsage": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "Region",
|
|
185
|
+
"alternateNames": [],
|
|
186
|
+
"isRequired": false,
|
|
187
|
+
"rOrderNum": 12,
|
|
188
|
+
"allowNaN": false,
|
|
189
|
+
"description": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
190
|
+
"rDescription": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
191
|
+
"datatype": "STRING",
|
|
192
|
+
"allowsLists": false,
|
|
193
|
+
"allowPadding": true,
|
|
194
|
+
"rName": "region",
|
|
195
|
+
"useInR": true,
|
|
196
|
+
"rFormulaUsage": false
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
{
|
|
200
|
+
"name": "AccessToken",
|
|
201
|
+
"alternateNames": [],
|
|
202
|
+
"isRequired": false,
|
|
203
|
+
"rOrderNum": 13,
|
|
204
|
+
"allowNaN": false,
|
|
205
|
+
"description": "Specifies the session token for google cloud.",
|
|
206
|
+
"rDescription": "Specifies the session token for google cloud.",
|
|
207
|
+
"datatype": "STRING",
|
|
208
|
+
"allowsLists": false,
|
|
209
|
+
"allowPadding": true,
|
|
210
|
+
"rName": "access.token",
|
|
211
|
+
"useInR": true,
|
|
212
|
+
"rFormulaUsage": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "Project",
|
|
216
|
+
"alternateNames": [],
|
|
217
|
+
"isRequired": false,
|
|
218
|
+
"rOrderNum": 14,
|
|
219
|
+
"allowNaN": false,
|
|
220
|
+
"description": "Specify the name of the gcp project.",
|
|
221
|
+
"rDescription": "Specify the name of the gcp project.",
|
|
222
|
+
"datatype": "STRING",
|
|
223
|
+
"allowsLists": false,
|
|
224
|
+
"allowPadding": true,
|
|
225
|
+
"rName": "project",
|
|
226
|
+
"useInR": true,
|
|
227
|
+
"rFormulaUsage": false
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "EnableSafety",
|
|
231
|
+
"alternateNames": [],
|
|
232
|
+
"isRequired": false,
|
|
233
|
+
"defaultValue": "TRUE",
|
|
234
|
+
"rOrderNum": 15,
|
|
235
|
+
"permittedValues": ["TRUE", "FALSE"],
|
|
236
|
+
"allowNaN": false,
|
|
237
|
+
"description": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
238
|
+
"rDescription": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
239
|
+
"datatype": "STRING",
|
|
240
|
+
"allowsLists": false,
|
|
241
|
+
"allowPadding": true,
|
|
242
|
+
"rName": "enable.safety",
|
|
243
|
+
"useInR": true,
|
|
244
|
+
"rFormulaUsage": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"targetTable": [
|
|
248
|
+
"InputTable"
|
|
249
|
+
],
|
|
250
|
+
"checkDuplicate": true,
|
|
251
|
+
"allowedTypes": ["VARCHAR"],
|
|
252
|
+
"allowedTypeGroups": [
|
|
253
|
+
"VARCHAR"
|
|
254
|
+
],
|
|
255
|
+
"matchLengthOfArgument": "",
|
|
256
|
+
"allowPadding": false,
|
|
257
|
+
"name": "TextColumn",
|
|
258
|
+
"alternateNames": [],
|
|
259
|
+
"isRequired": true,
|
|
260
|
+
"rDescription": "Specifies the name of the text column to be used as input.",
|
|
261
|
+
"description": "Specifies the name of the text column to be used as input.",
|
|
262
|
+
"datatype": "COLUMNS",
|
|
263
|
+
"allowsLists": false,
|
|
264
|
+
"rName": "text.column",
|
|
265
|
+
"useInR": true,
|
|
266
|
+
"rFormulaUsage": false,
|
|
267
|
+
"rOrderNum": 16
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
{
|
|
271
|
+
"defaultValue": true,
|
|
272
|
+
"permittedValues": [
|
|
273
|
+
"true",
|
|
274
|
+
"false"
|
|
275
|
+
],
|
|
276
|
+
"isOutputColumn": false,
|
|
277
|
+
"name": "isDebug",
|
|
278
|
+
"alternateNames": [],
|
|
279
|
+
"isRequired": false,
|
|
280
|
+
"rDescription": "Specify whether error logging is required.",
|
|
281
|
+
"description": "Specify whether error logging is required.",
|
|
282
|
+
"datatype": "BOOLEAN",
|
|
283
|
+
"allowsLists": false,
|
|
284
|
+
"rName": "isDebug",
|
|
285
|
+
"useInR": true,
|
|
286
|
+
"rOrderNum": 17
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"targetTable": [
|
|
290
|
+
"InputTable"
|
|
291
|
+
],
|
|
292
|
+
"checkDuplicate": true,
|
|
293
|
+
"allowedTypes": [],
|
|
294
|
+
"allowedTypeGroups": [
|
|
295
|
+
"ALL"
|
|
296
|
+
],
|
|
297
|
+
"matchLengthOfArgument": "",
|
|
298
|
+
"allowPadding": false,
|
|
299
|
+
"name": "Accumulate",
|
|
300
|
+
"alternateNames": [],
|
|
301
|
+
"isRequired": false,
|
|
302
|
+
"rDescription": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
303
|
+
"description": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
304
|
+
"datatype": "COLUMNS",
|
|
305
|
+
"allowsLists": true,
|
|
306
|
+
"rName": "accumulate",
|
|
307
|
+
"useInR": true,
|
|
308
|
+
"rOrderNum": 18
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "AUTHORIZATION",
|
|
312
|
+
"alternateNames": [],
|
|
313
|
+
"isRequired": false,
|
|
314
|
+
"rOrderNum":19,
|
|
315
|
+
"allowNaN": false,
|
|
316
|
+
"description": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
317
|
+
"rDescription": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
318
|
+
"datatype": "STRING",
|
|
319
|
+
"allowsLists": false,
|
|
320
|
+
"allowPadding": true,
|
|
321
|
+
"rName": "authorization",
|
|
322
|
+
"useInR": true,
|
|
323
|
+
"rFormulaUsage": false
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "levels",
|
|
327
|
+
"alternateNames": [],
|
|
328
|
+
"isRequired": false,
|
|
329
|
+
"rOrderNum":20,
|
|
330
|
+
"allowNaN": false,
|
|
331
|
+
"description": "Specifies the level of conciseness of the summary.",
|
|
332
|
+
"rDescription": "Specifies the level of conciseness of the summary",
|
|
333
|
+
"datatype": "STRING",
|
|
334
|
+
"allowsLists": false,
|
|
335
|
+
"allowPadding": true,
|
|
336
|
+
"rName": "levels",
|
|
337
|
+
"useInR": true,
|
|
338
|
+
"rFormulaUsage": false
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json_schema_major_version": "1",
|
|
3
|
+
"json_schema_minor_version": "2",
|
|
4
|
+
"json_content_version": "1",
|
|
5
|
+
"function_name": "AI_TextTranslate",
|
|
6
|
+
"function_version": "1.0",
|
|
7
|
+
"function_type": "fastpath",
|
|
8
|
+
"function_category": "Text Analytics AI",
|
|
9
|
+
"function_alias_name": "AITextTranslate",
|
|
10
|
+
"function_r_name": "aa.ai_texttranslate",
|
|
11
|
+
"supports_view": false,
|
|
12
|
+
"short_description": "This function is used to translate the input to target language from the specified column of a Teradata table.The languages supported align with those supported by the respective large language models (LLMs) in use. By default the target language is set to 'English'.",
|
|
13
|
+
"long_description": "This function is used to translate the input to target language from the specified column of a Teradata table.The languages supported align with those supported by the respective large language models (LLMs) in use. By default the target language is set to 'English'.",
|
|
14
|
+
"input_tables": [
|
|
15
|
+
{
|
|
16
|
+
"isOrdered": false,
|
|
17
|
+
"partitionByOne": false,
|
|
18
|
+
"name": "InputTable",
|
|
19
|
+
"alternateNames": [],
|
|
20
|
+
"isRequired": true,
|
|
21
|
+
"rDescription": "Specifies the table containing the input data.",
|
|
22
|
+
"description": "Specifies the table containing the input data.",
|
|
23
|
+
"datatype": "TABLE_ALIAS",
|
|
24
|
+
"allowsLists": false,
|
|
25
|
+
"rName": "data",
|
|
26
|
+
"useInR": true,
|
|
27
|
+
"rOrderNum": 1
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"argument_clauses": [
|
|
31
|
+
{
|
|
32
|
+
"name": "ApiBase",
|
|
33
|
+
"alternateNames": [],
|
|
34
|
+
"isRequired": false,
|
|
35
|
+
"rOrderNum": 2,
|
|
36
|
+
"allowNaN": false,
|
|
37
|
+
"description": "Specifies the LLM API base URL for azure.",
|
|
38
|
+
"rDescription": "Specifies the LLM API base URL for azure.",
|
|
39
|
+
"datatype": "STRING",
|
|
40
|
+
"allowsLists": false,
|
|
41
|
+
"allowPadding": true,
|
|
42
|
+
"rName": "api.base",
|
|
43
|
+
"useInR": true,
|
|
44
|
+
"rFormulaUsage": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "ApiKey",
|
|
48
|
+
"alternateNames": [],
|
|
49
|
+
"isRequired": false,
|
|
50
|
+
"rOrderNum": 3,
|
|
51
|
+
"allowNaN": false,
|
|
52
|
+
"description": "Specifies the LLM API Key for azure.",
|
|
53
|
+
"rDescription": "Specifies the LLM API Key for azure.",
|
|
54
|
+
"datatype": "STRING",
|
|
55
|
+
"allowsLists": false,
|
|
56
|
+
"allowPadding": true,
|
|
57
|
+
"rName": "api.key",
|
|
58
|
+
"useInR": true,
|
|
59
|
+
"rFormulaUsage": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "ApiVersion",
|
|
63
|
+
"alternateNames": [],
|
|
64
|
+
"isRequired": false,
|
|
65
|
+
"rOrderNum": 4,
|
|
66
|
+
"allowNaN": false,
|
|
67
|
+
"description": "Specifies the LLM API version for azure.",
|
|
68
|
+
"rDescription": "Specifies the LLM API version for azure.",
|
|
69
|
+
"datatype": "STRING",
|
|
70
|
+
"allowsLists": false,
|
|
71
|
+
"allowPadding": true,
|
|
72
|
+
"rName": "api.version",
|
|
73
|
+
"useInR": true,
|
|
74
|
+
"rFormulaUsage": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "DeploymentId",
|
|
78
|
+
"alternateNames": [],
|
|
79
|
+
"isRequired": false,
|
|
80
|
+
"rOrderNum": 5,
|
|
81
|
+
"allowNaN": false,
|
|
82
|
+
"description": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
83
|
+
"rDescription": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
84
|
+
"datatype": "STRING",
|
|
85
|
+
"allowsLists": false,
|
|
86
|
+
"allowPadding": true,
|
|
87
|
+
"rName": "deployment.id",
|
|
88
|
+
"useInR": true,
|
|
89
|
+
"rFormulaUsage": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "ModelName",
|
|
93
|
+
"alternateNames": [],
|
|
94
|
+
"isRequired": false,
|
|
95
|
+
"rOrderNum": 6,
|
|
96
|
+
"allowNaN": false,
|
|
97
|
+
"description": "Name of the large language model to be used for text analytics tasks.",
|
|
98
|
+
"rDescription": "Name of the large language model to be used for text analytics tasks.",
|
|
99
|
+
"datatype": "STRING",
|
|
100
|
+
"allowsLists": false,
|
|
101
|
+
"allowPadding": true,
|
|
102
|
+
"rName": "model.name",
|
|
103
|
+
"useInR": true,
|
|
104
|
+
"rFormulaUsage": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "ModelArgs",
|
|
108
|
+
"alternateNames": [],
|
|
109
|
+
"isRequired": false,
|
|
110
|
+
"rOrderNum": 7,
|
|
111
|
+
"allowNaN": false,
|
|
112
|
+
"description": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
113
|
+
"rDescription": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
114
|
+
"datatype": "STRING",
|
|
115
|
+
"allowsLists": false,
|
|
116
|
+
"allowPadding": true,
|
|
117
|
+
"rName": "model.args",
|
|
118
|
+
"useInR": true,
|
|
119
|
+
"rFormulaUsage": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "ApiType",
|
|
123
|
+
"alternateNames": [],
|
|
124
|
+
"isRequired": true,
|
|
125
|
+
"rOrderNum": 8,
|
|
126
|
+
"permittedValues": ["azure","aws","gcp","nim"],
|
|
127
|
+
"allowNaN": false,
|
|
128
|
+
"description": "Identification of the cloud platform.",
|
|
129
|
+
"rDescription": "Identification of the cloud platform.",
|
|
130
|
+
"datatype": "STRING",
|
|
131
|
+
"allowsLists": false,
|
|
132
|
+
"allowPadding": true,
|
|
133
|
+
"rName": "api.type",
|
|
134
|
+
"useInR": true,
|
|
135
|
+
"rFormulaUsage": false,
|
|
136
|
+
"rDefaultValue": null
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "AccessKey",
|
|
140
|
+
"alternateNames": [],
|
|
141
|
+
"isRequired": false,
|
|
142
|
+
"rOrderNum": 9,
|
|
143
|
+
"allowNaN": false,
|
|
144
|
+
"description": "Specifies the AWS Bedrock service access key.",
|
|
145
|
+
"rDescription": "Specifies the AWS Bedrock service access key.",
|
|
146
|
+
"datatype": "STRING",
|
|
147
|
+
"allowsLists": false,
|
|
148
|
+
"allowPadding": true,
|
|
149
|
+
"rName": "access.key",
|
|
150
|
+
"useInR": true,
|
|
151
|
+
"rFormulaUsage": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "SecretKey",
|
|
155
|
+
"alternateNames": [],
|
|
156
|
+
"isRequired": false,
|
|
157
|
+
"rOrderNum": 10,
|
|
158
|
+
"allowNaN": false,
|
|
159
|
+
"description": "Specifies the AWS Bedrock service secret key.",
|
|
160
|
+
"rDescription": "Specifies the AWS Bedrock service secret key.",
|
|
161
|
+
"datatype": "STRING",
|
|
162
|
+
"allowsLists": false,
|
|
163
|
+
"allowPadding": true,
|
|
164
|
+
"rName": "secret.key",
|
|
165
|
+
"useInR": true,
|
|
166
|
+
"rFormulaUsage": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "SessionKey",
|
|
170
|
+
"alternateNames": [],
|
|
171
|
+
"isRequired": false,
|
|
172
|
+
"rOrderNum": 11,
|
|
173
|
+
"allowNaN": false,
|
|
174
|
+
"description": "Specifies the AWS bedrock service session key.",
|
|
175
|
+
"rDescription": "Specifies the AWS bedrock service session key.",
|
|
176
|
+
"datatype": "STRING",
|
|
177
|
+
"allowsLists": false,
|
|
178
|
+
"allowPadding": true,
|
|
179
|
+
"rName": "session.key",
|
|
180
|
+
"useInR": true,
|
|
181
|
+
"rFormulaUsage": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "Region",
|
|
185
|
+
"alternateNames": [],
|
|
186
|
+
"isRequired": false,
|
|
187
|
+
"rOrderNum": 12,
|
|
188
|
+
"allowNaN": false,
|
|
189
|
+
"description": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
190
|
+
"rDescription": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
191
|
+
"datatype": "STRING",
|
|
192
|
+
"allowsLists": false,
|
|
193
|
+
"allowPadding": true,
|
|
194
|
+
"rName": "region",
|
|
195
|
+
"useInR": true,
|
|
196
|
+
"rFormulaUsage": false
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
{
|
|
200
|
+
"name": "AccessToken",
|
|
201
|
+
"alternateNames": [],
|
|
202
|
+
"isRequired": false,
|
|
203
|
+
"rOrderNum": 13,
|
|
204
|
+
"allowNaN": false,
|
|
205
|
+
"description": "Specifies the session token for google cloud.",
|
|
206
|
+
"rDescription": "Specifies the session token for google cloud.",
|
|
207
|
+
"datatype": "STRING",
|
|
208
|
+
"allowsLists": false,
|
|
209
|
+
"allowPadding": true,
|
|
210
|
+
"rName": "access.token",
|
|
211
|
+
"useInR": true,
|
|
212
|
+
"rFormulaUsage": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "Project",
|
|
216
|
+
"alternateNames": [],
|
|
217
|
+
"isRequired": false,
|
|
218
|
+
"rOrderNum": 14,
|
|
219
|
+
"allowNaN": false,
|
|
220
|
+
"description": "Specify the name of the gcp project.",
|
|
221
|
+
"rDescription": "Specify the name of the gcp project.",
|
|
222
|
+
"datatype": "STRING",
|
|
223
|
+
"allowsLists": false,
|
|
224
|
+
"allowPadding": true,
|
|
225
|
+
"rName": "project",
|
|
226
|
+
"useInR": true,
|
|
227
|
+
"rFormulaUsage": false
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "EnableSafety",
|
|
231
|
+
"alternateNames": [],
|
|
232
|
+
"isRequired": false,
|
|
233
|
+
"defaultValue": "TRUE",
|
|
234
|
+
"rOrderNum": 15,
|
|
235
|
+
"permittedValues": ["TRUE", "FALSE"],
|
|
236
|
+
"allowNaN": false,
|
|
237
|
+
"description": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
238
|
+
"rDescription": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
239
|
+
"datatype": "STRING",
|
|
240
|
+
"allowsLists": false,
|
|
241
|
+
"allowPadding": true,
|
|
242
|
+
"rName": "enable.safety",
|
|
243
|
+
"useInR": true,
|
|
244
|
+
"rFormulaUsage": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"targetTable": [
|
|
248
|
+
"InputTable"
|
|
249
|
+
],
|
|
250
|
+
"checkDuplicate": true,
|
|
251
|
+
"allowedTypes": ["VARCHAR"],
|
|
252
|
+
"allowedTypeGroups": [
|
|
253
|
+
"VARCHAR"
|
|
254
|
+
],
|
|
255
|
+
"matchLengthOfArgument": "",
|
|
256
|
+
"allowPadding": false,
|
|
257
|
+
"name": "TextColumn",
|
|
258
|
+
"alternateNames": [],
|
|
259
|
+
"isRequired": true,
|
|
260
|
+
"rDescription": "Specifies the name of the text column to be used as input.",
|
|
261
|
+
"description": "Specifies the name of the text column to be used as input.",
|
|
262
|
+
"datatype": "COLUMNS",
|
|
263
|
+
"allowsLists": false,
|
|
264
|
+
"rName": "text.column",
|
|
265
|
+
"useInR": true,
|
|
266
|
+
"rFormulaUsage": false,
|
|
267
|
+
"rOrderNum": 16
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
{
|
|
271
|
+
"defaultValue": true,
|
|
272
|
+
"permittedValues": [
|
|
273
|
+
"true",
|
|
274
|
+
"false"
|
|
275
|
+
],
|
|
276
|
+
"isOutputColumn": false,
|
|
277
|
+
"name": "isDebug",
|
|
278
|
+
"alternateNames": [],
|
|
279
|
+
"isRequired": false,
|
|
280
|
+
"rDescription": "Specify whether error logging is required.",
|
|
281
|
+
"description": "Specify whether error logging is required.",
|
|
282
|
+
"datatype": "BOOLEAN",
|
|
283
|
+
"allowsLists": false,
|
|
284
|
+
"rName": "isDebug",
|
|
285
|
+
"useInR": true,
|
|
286
|
+
"rOrderNum": 17
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"targetTable": [
|
|
290
|
+
"InputTable"
|
|
291
|
+
],
|
|
292
|
+
"checkDuplicate": true,
|
|
293
|
+
"allowedTypes": [],
|
|
294
|
+
"allowedTypeGroups": [
|
|
295
|
+
"ALL"
|
|
296
|
+
],
|
|
297
|
+
"matchLengthOfArgument": "",
|
|
298
|
+
"allowPadding": false,
|
|
299
|
+
"name": "Accumulate",
|
|
300
|
+
"alternateNames": [],
|
|
301
|
+
"isRequired": false,
|
|
302
|
+
"rDescription": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
303
|
+
"description": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
304
|
+
"datatype": "COLUMNS",
|
|
305
|
+
"allowsLists": true,
|
|
306
|
+
"rName": "accumulate",
|
|
307
|
+
"useInR": true,
|
|
308
|
+
"rOrderNum": 18
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "AUTHORIZATION",
|
|
312
|
+
"alternateNames": [],
|
|
313
|
+
"isRequired": false,
|
|
314
|
+
"rOrderNum":19,
|
|
315
|
+
"allowNaN": false,
|
|
316
|
+
"description": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
317
|
+
"rDescription": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
318
|
+
"datatype": "STRING",
|
|
319
|
+
"allowsLists": false,
|
|
320
|
+
"allowPadding": true,
|
|
321
|
+
"rName": "authorization",
|
|
322
|
+
"useInR": true,
|
|
323
|
+
"rFormulaUsage": false
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "TargetLang",
|
|
327
|
+
"alternateNames": [],
|
|
328
|
+
"isRequired": false,
|
|
329
|
+
"rOrderNum":20,
|
|
330
|
+
"allowNaN": false,
|
|
331
|
+
"description": "Specifies the target language for translation.",
|
|
332
|
+
"rDescription": "Specifies the target language for translation.",
|
|
333
|
+
"datatype": "STRING",
|
|
334
|
+
"allowsLists": false,
|
|
335
|
+
"allowPadding": true,
|
|
336
|
+
"rName": "target.lang",
|
|
337
|
+
"useInR": true,
|
|
338
|
+
"rFormulaUsage": false
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
|