@@ -482,12 +482,61 @@ paths:
482
482
description : >-
483
483
The training data should be in YAML format.
484
484
content :
485
- application/json :
486
- schema :
487
- $ref : ' #/components/schemas/JSONTrainingRequest'
488
- application/x-yaml :
485
+ application/yaml :
489
486
schema :
490
- type : string
487
+ $ref : ' #/components/schemas/YAMLTrainingRequest'
488
+ example : |
489
+ pipeline: []
490
+
491
+ policies: []
492
+
493
+ intents:
494
+ - greet
495
+ - goodbye
496
+
497
+ entities: []
498
+ slots: {}
499
+ actions: []
500
+ forms: {}
501
+ e2e_actions: []
502
+
503
+ responses:
504
+ utter_greet:
505
+ - text: "Hey! How are you?"
506
+
507
+ utter_goodbye:
508
+ - text: "Bye"
509
+
510
+ session_config:
511
+ session_expiration_time: 60
512
+ carry_over_slots_to_new_session: true
513
+
514
+ nlu:
515
+ - intent: greet
516
+ examples: |
517
+ - hey
518
+ - hello
519
+
520
+ - intent: goodbye
521
+ examples: |
522
+ - bye
523
+ - goodbye
524
+
525
+ rules:
526
+
527
+ - rule: Say goodbye anytime the user says goodbye
528
+ steps:
529
+ - intent: goodbye
530
+ - action: utter_goodbye
531
+
532
+ stories:
533
+
534
+ - story: happy path
535
+ steps:
536
+ - intent: greet
537
+ - action: utter_greet
538
+ - intent: goodbye
539
+ - action: utter_goodbye
491
540
492
541
responses :
493
542
200 :
@@ -718,7 +767,8 @@ paths:
718
767
summary : Replace the currently loaded model
719
768
description : >-
720
769
Updates the currently loaded model.
721
- First, tries to load the model from the local storage system.
770
+ First, tries to load the model from the local (note: local to Rasa server)
771
+ storage system.
722
772
Secondly, tries to load the model from the provided model server configuration.
723
773
Last, tries to load the model from the provided remote storage.
724
774
requestBody :
@@ -1052,7 +1102,7 @@ components:
1052
1102
model_file :
1053
1103
type : string
1054
1104
description : Path to model file
1055
- example : " /models/20190512.tar.gz"
1105
+ example : " /absolute-path-to-models-directory/ models/20190512.tar.gz"
1056
1106
model_server :
1057
1107
$ref : ' #/components/schemas/EndpointConfig'
1058
1108
remote_storage :
@@ -1407,19 +1457,53 @@ components:
1407
1457
type : integer
1408
1458
description : Time to wait between pulls from model server
1409
1459
1410
- JSONTrainingRequest :
1460
+ YAMLTrainingRequest :
1411
1461
type : object
1412
1462
properties :
1413
- domain :
1414
- $ref : ' #/components/schemas/DomainFile'
1415
- config :
1416
- $ref : ' #/components/schemas/ConfigFile'
1417
- nlu :
1418
- $ref : ' #/components/schemas/NLUTrainingData'
1463
+ pipeline :
1464
+ description : Pipeline list
1465
+ type : array
1466
+ policies :
1467
+ description : Policies list
1468
+ type : array
1469
+ entities :
1470
+ description : Entity list
1471
+ type : array
1472
+ slots :
1473
+ description : Slots list
1474
+ type : array
1475
+ actions :
1476
+ description : Action list
1477
+ type : array
1478
+ forms :
1479
+ description : Forms list
1480
+ type : array
1481
+ e2e_actions :
1482
+ description : E2E Action list
1483
+ type : array
1419
1484
responses :
1420
- $ref : ' #/components/schemas/RetrievalIntentsTrainingData'
1485
+ description : Bot response templates
1486
+ type : object
1487
+ additionalProperties :
1488
+ $ref : ' #/components/schemas/TemplateDescription'
1489
+ session_config :
1490
+ description : Session configuration options
1491
+ type : object
1492
+ properties :
1493
+ session_expiration_time :
1494
+ type : integer
1495
+ carry_over_slots_to_new_session :
1496
+ type : boolean
1497
+ nlu :
1498
+ description : Rasa NLU data, array of intents
1499
+ type : array
1500
+ rules :
1501
+ description : Rule list
1502
+ type : array
1421
1503
stories :
1422
- $ref : ' #/components/schemas/StoriesTrainingData'
1504
+ description : Rasa Core stories in YAML format
1505
+ type : array
1506
+
1423
1507
force :
1424
1508
type : boolean
1425
1509
description : >-
@@ -1432,46 +1516,6 @@ components:
1432
1516
If `true` (default) the trained model will be saved in the default model
1433
1517
directory, if `false` it will be saved in a temporary directory
1434
1518
deprecated : True
1435
- required : ["config"]
1436
-
1437
- NLUTrainingData :
1438
- type : string
1439
- description : Rasa NLU training data in YAML format
1440
- example : >-
1441
- - intent: greet
1442
- examples: |
1443
- - hey
1444
- - hello
1445
- - hi
1446
-
1447
- - intent: goodbye
1448
- examples: |
1449
- - bye
1450
- - goodbye
1451
- - have a nice day
1452
- - see you
1453
-
1454
- - intent: affirm
1455
- examples: |
1456
- - yes
1457
- - indeed
1458
-
1459
- - intent: deny
1460
- examples: |
1461
- - no
1462
- - never
1463
-
1464
- - intent: mood_great
1465
- examples: |
1466
- - perfect
1467
- - very good
1468
- - great
1469
-
1470
- - intent: mood_unhappy
1471
- examples: |
1472
- - sad
1473
- - not good
1474
- - unhappy
1475
1519
1476
1520
RetrievalIntentsTrainingData :
1477
1521
type : string
@@ -1518,48 +1562,6 @@ components:
1518
1562
- intent: goodbye
1519
1563
- action: utter_goodbye
1520
1564
1521
- DomainFile :
1522
- type : string
1523
- description : Rasa domain in plain text
1524
- example : >-
1525
- intents:
1526
- - greet
1527
- - goodbye
1528
- - affirm
1529
- - deny
1530
- - mood_great
1531
- - mood_unhappy
1532
-
1533
- responses:
1534
- utter_greet:
1535
- - text: "Hey! How are you?"
1536
-
1537
- utter_cheer_up:
1538
- - text: "Here is something to cheer you up:"
1539
- image: "https://i.imgur.com/nGF1K8f.jpg"
1540
-
1541
- utter_did_that_help:
1542
- - text: "Did that help you?"
1543
-
1544
- utter_happy:
1545
- - text: "Great carry on!"
1546
-
1547
- utter_goodbye:
1548
- - text: "Bye"
1549
-
1550
- ConfigFile :
1551
- type : string
1552
- description : Rasa config in plain text
1553
- example : >-
1554
- recipe: default.v1
1555
- language: en
1556
-
1557
- pipeline: supervised_embeddings
1558
-
1559
- policies:
1560
- - name: MemoizationPolicy
1561
- - name: TEDPolicy
1562
-
1563
1565
TrainingResult :
1564
1566
type : string
1565
1567
format : binary
0 commit comments