Skip to content

Commit 6729347

Browse files
committed
Added optional parameters under Additional Parameters
1 parent 4bd0345 commit 6729347

File tree

1 file changed

+35
-14
lines changed
  • packages/components/nodes/vectorstores/Teradata

1 file changed

+35
-14
lines changed

packages/components/nodes/vectorstores/Teradata/Teradata.ts

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class Teradata_VectorStores implements INode {
7272
description: 'Teradata Vector Store Description',
7373
placeholder: `Vector_Store_Description`,
7474
type: 'string',
75+
additionalParams: true,
7576
optional: true
7677
},
7778
{
@@ -80,6 +81,7 @@ class Teradata_VectorStores implements INode {
8081
description: 'Search Algorithm for Vector Store',
8182
placeholder: 'Search_Algorithm',
8283
type: 'string',
84+
additionalParams: true,
8385
optional: true
8486
},
8587
{
@@ -88,54 +90,61 @@ class Teradata_VectorStores implements INode {
8890
description: 'Distance Metric to be used for distance calculation between vectors',
8991
placeholder: 'Distance_Metric',
9092
type: 'string',
93+
additionalParams: true,
9194
optional: true
9295
},
9396
{
9497
label: 'Initial_Centroids_Method',
9598
name: 'initialCentroidsMethod',
96-
description: 'Algorithm to be used for initializing the cluster centroids',
99+
description: 'Algorithm to be used for initializing the cluster centroids for Search Algorithm KMEANS',
97100
placeholder: 'Initial_Centroids_Method',
98101
type: 'string',
102+
additionalParams: true,
99103
optional: true
100104
},
101105
{
102106
label: 'Train_NumCluster',
103107
name: 'trainNumCluster',
104-
description: 'Number of clusters to be trained',
108+
description: 'Number of clusters to be trained for Search Algorithm KMEANS',
105109
placeholder: 'Train_NumCluster',
106110
type: 'string',
111+
additionalParams: true,
107112
optional: true
108113
},
109114
{
110115
label: 'MaxIterNum',
111116
name: 'maxIterNum',
112-
description: 'Maximum number of iterations to be run during training',
117+
description: 'Maximum number of iterations to be run during training for Search Algorithm KMEANS',
113118
placeholder: 'MaxIterNum',
114119
type: 'string',
120+
additionalParams: true,
115121
optional: true
116122
},
117123
{
118124
label: 'Stop_Threshold',
119125
name: 'stopThreshold',
120-
description: 'Threshold value at which training should be stopped',
126+
description: 'Threshold value at which training should be stopped for Search Algorithm KMEANS',
121127
placeholder: 'Stop_Threshold',
122128
type: 'string',
129+
additionalParams: true,
123130
optional: true
124131
},
125132
{
126133
label: 'Seed',
127134
name: 'seed',
128-
description: 'Seed value to be used for random number generation',
135+
description: 'Seed value to be used for random number generation for Search Algorithm KMEANS',
129136
placeholder: 'Seed',
130137
type: 'string',
138+
additionalParams: true,
131139
optional: true
132140
},
133141
{
134142
label: 'Num_Init',
135143
name: 'numInit',
136-
description: 'number of times the k-means algorithm should run with different initial centroid seeds',
144+
description: 'number of times the k-means algorithm should run with different initial centroid seeds for Search Algorithm KMEANS',
137145
placeholder: 'Num_Init',
138146
type: 'string',
147+
additionalParams: true,
139148
optional: true
140149
},
141150
{
@@ -144,6 +153,7 @@ class Teradata_VectorStores implements INode {
144153
description: 'Number of top results to fetch. Default to 10',
145154
placeholder: 'Top_K',
146155
type: 'string',
156+
additionalParams: true,
147157
optional: true
148158
},
149159
{
@@ -152,62 +162,70 @@ class Teradata_VectorStores implements INode {
152162
description: 'Threshold value to consider for matching tables/views while searching',
153163
placeholder: 'Search_Threshold',
154164
type: 'string',
165+
additionalParams: true,
155166
optional: true
156167
},
157168
{
158169
label: 'Search_NumCluster',
159170
name: 'searchNumCluster',
160-
description: 'Number of clusters to be considered while searching',
171+
description: 'Number of clusters to be considered while searching for Search Algorithm KMEANS',
161172
placeholder: 'Search_NumCluster',
162173
type: 'string',
174+
additionalParams: true,
163175
optional: true
164176
},
165177
{
166178
label: 'Ef_Search',
167179
name: 'efSearch',
168-
description: 'Number of neighbors to be considered during search in HNSW graph',
180+
description: 'Number of neighbors to be considered during search in HNSW graph for Search Algorithm HNSW',
169181
placeholder: 'Ef_Search',
170182
type: 'string',
183+
additionalParams: true,
171184
optional: true
172185
},
173186
{
174187
label: 'Num_Layer',
175188
name: 'numLayer',
176-
description: 'Number of neighbors to be considered during search in HNSW graph',
189+
description: 'Number of layers in the HNSW graph for Search Algorithm HNSW',
177190
placeholder: 'Num_Layer',
178191
type: 'string',
192+
additionalParams: true,
179193
optional: true
180194
},
181195
{
182196
label: 'Ef_Construction',
183197
name: 'efConstruction',
184-
description: 'Number of neighbors to be considered during construction of the HNSW graph',
198+
description: 'Number of neighbors to be considered during construction of the HNSW graph for Search Algorithm HNSW',
185199
placeholder: 'Ef_Construction',
186200
type: 'string',
201+
additionalParams: true,
187202
optional: true
188203
},
189204
{
190205
label: 'Num_ConnPerNode',
191206
name: 'numConnPerNode',
192-
description: 'Number of connections per node in the HNSW graph during construction',
207+
description: 'Number of connections per node in the HNSW graph during construction for Search Algorithm HNSW',
193208
placeholder: 'Num_ConnPerNode',
194209
type: 'string',
210+
additionalParams: true,
195211
optional: true
196212
},
197213
{
198214
label: 'MaxNum_ConnPerNode',
199215
name: 'maxNumConnPerNode',
200-
description: 'Maximum number of connections per node in the HNSW graph during construction',
216+
description: 'Maximum number of connections per node in the HNSW graph during construction for Search Algorithm HNSW',
201217
placeholder: 'MaxNum_ConnPerNode',
202218
type: 'string',
219+
additionalParams: true,
203220
optional: true
204221
},
205222
{
206223
label: 'Apply_Heuristics',
207224
name: 'applyHeuristics',
208-
description: 'Specifies whether to apply heuristics optimizations during construction of the HNSW graph',
225+
description: 'Specifies whether to apply heuristics optimizations during construction of the HNSW graph for Search Algorithm HNSW',
209226
placeholder: 'Apply_Heuristics',
210227
type: 'string',
228+
additionalParams: true,
211229
optional: true
212230
},
213231
{
@@ -216,6 +234,7 @@ class Teradata_VectorStores implements INode {
216234
description: 'Weight to be used for reranking the search results',
217235
placeholder: 'Rerank_Weight',
218236
type: 'string',
237+
additionalParams: true,
219238
optional: true
220239
},
221240
{
@@ -224,6 +243,7 @@ class Teradata_VectorStores implements INode {
224243
description: 'Number of top similarity matches to be considered for reranking',
225244
placeholder: 'Relevance_Top_K',
226245
type: 'string',
246+
additionalParams: true,
227247
optional: true
228248
},
229249
{
@@ -232,6 +252,7 @@ class Teradata_VectorStores implements INode {
232252
description: 'Threshold value to consider for matching tables/views while reranking',
233253
placeholder: 'Relevance_Search_Threshold',
234254
type: 'string',
255+
additionalParams: true,
235256
optional: true
236257
}
237258
]
@@ -816,4 +837,4 @@ class Teradata_VectorStores implements INode {
816837
}
817838
}
818839

819-
module.exports = { nodeClass: Teradata_VectorStores }
840+
module.exports = { nodeClass: Teradata_VectorStores }

0 commit comments

Comments
 (0)