|
50 | 50 | <option value="createEnvrionment">Create new environment</option> |
51 | 51 | <option value="listEnvrionments">List existing environments</option> |
52 | 52 | <option value="getEnvironmentDetails">Retrieve environment details</option> |
| 53 | + <option value="deleteEnvironment">Delete environment</option> |
53 | 54 | <option value="createCollection">Create new collection</option> |
54 | 55 | <option value="listCollections">List existing collections</option> |
55 | 56 | <option value="getCollectionDetails">Retrieve collection details</option> |
| 57 | + <option value="deleteCollection">Delete collection</option> |
56 | 58 | <option value="createConfiguration">Create new configuration</option> |
57 | 59 | <option value="listConfigurations">List existing configurations</option> |
58 | 60 | <option value="getConfigurationDetails">Retrieve configuration details</option> |
|
83 | 85 | <label for="node-input-configuration_id"><i class="fa fa-tag"></i> Configuration ID</label> |
84 | 86 | <input type="text" id="node-input-configuration_id" placeholder=""> |
85 | 87 | </div> |
| 88 | + |
| 89 | + <div class="form-row"> |
| 90 | + <label for="node-input-language_code"><i class="fa fa-language"></i> Language: </label> |
| 91 | + <select type="text" id="node-input-language_code" style="display: inline-block; width: 70%;"> |
| 92 | + <option value="en">English</option> |
| 93 | + <option value="de">German</option> |
| 94 | + <option value="es">Spanish</option> |
| 95 | + <option value="ar">Arabic</option> |
| 96 | + <option value="fr">French</option> |
| 97 | + <option value="it">Italian</option> |
| 98 | + <option value="ja">Japanese</option> |
| 99 | + <option value="pt-br">Brazilian Portuguese</option> |
| 100 | + </select> |
| 101 | + </div> |
| 102 | + |
86 | 103 | <div class="form-row"> |
87 | 104 | <label for="node-input-count"><i class="fa fa-tag"></i> Number of documents</label> |
88 | 105 | <input type="text" id="node-input-count" placeholder=""> |
|
180 | 197 | <li><code>msg.environment_details</code> : Details of the requested environment.</li> |
181 | 198 | </ul> |
182 | 199 | </li> |
| 200 | + <li> |
| 201 | + <p><b>Create New Collection</b><p> |
| 202 | + <p>For this method the node needs an Environment ID, Collection Name, |
| 203 | + Description, Configuration ID and Language Code as input. |
| 204 | + </p> |
| 205 | + <p>The fields can be overridden by specifying |
| 206 | + in <code>msg.discoveryparams.environment_id</code> |
| 207 | + , <code>msg.discoveryparams.collection_name</code> |
| 208 | + , <code>msg.discoveryparams.description</code> |
| 209 | + , <code>msg.discoveryparams.configuration_id</code> |
| 210 | + and <code>msg.discoveryparams.language_code</code> |
| 211 | + </p> |
| 212 | + |
| 213 | + <p>Node output : </p> |
| 214 | + <ul> |
| 215 | + <li><code>msg.collection</code> : Information about the |
| 216 | + newly created collection.</li> |
| 217 | + </ul> |
| 218 | + </li> |
183 | 219 | <br/> |
184 | 220 | <li> |
185 | 221 | <p><b>List Existing Collections</b><p> |
|
295 | 331 | $('#node-input-collection_id').parent().hide(); |
296 | 332 | $('#node-input-configurationname').parent().hide(); |
297 | 333 | $('#node-input-configuration_id').parent().hide(); |
| 334 | + $('#node-input-language_code').parent().hide(); |
298 | 335 | $('#node-input-count').parent().hide(); |
299 | 336 | $('#node-input-passages').parent().hide(); |
300 | 337 | $('#node-input-nlp_query').parent().hide(); |
|
327 | 364 | case 'createCollection': |
328 | 365 | fields.push('#node-input-environment_id' |
329 | 366 | + ', #node-input-configuration_id' |
| 367 | + + ', #node-input-language_code' |
330 | 368 | + ', #node-input-collection_name' |
331 | 369 | + ', #node-input-description'); |
332 | 370 | break; |
333 | 371 | case 'createConfiguration': |
334 | 372 | case 'getEnvironmentDetails': |
335 | 373 | case 'listCollections': |
| 374 | + case 'deleteEnvironment': |
336 | 375 | fields.push('#node-input-environment_id'); |
337 | 376 | break; |
338 | 377 | case 'getCollectionDetails': |
| 378 | + case 'deleteCollection': |
339 | 379 | fields.push('#node-input-environment_id' |
340 | 380 | + ', #node-input-collection_id'); |
341 | 381 | break; |
|
407 | 447 | collection_id: {value: ''}, |
408 | 448 | configurationname: {value: ''}, |
409 | 449 | configuration_id: {value: ''}, |
| 450 | + language_code: {value: 'en'}, |
410 | 451 | collection_name: {value: ''}, |
411 | 452 | count: {value: '1'}, |
412 | 453 | passages: {value: 'false'}, |
|
0 commit comments