You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdialog/index.rst
+24-27Lines changed: 24 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -395,41 +395,38 @@ Both generators derive from :class:`~sdialog.generators.base.BaseAttributeModelG
395
395
396
396
Creates diverse character profiles with demographic, behavioral, and professional attributes. Ideal for generating varied participants in dialogue scenarios.
397
397
398
-
Let's see how we can create sophisticated mentor personas where attributes intelligently depend on each other. In this example, we'll make the communication style adapt based on years of teaching experience:
398
+
Let's see how we can create teacher personas using only attributes defined in personas.py. For example, we can generate teachers with different subjects and years of experience:
399
399
400
400
.. code-block:: python
401
401
402
402
import random
403
-
from sdialog.personas importMentor
403
+
from sdialog.personas importTeacher
404
404
from sdialog.generators import PersonaGenerator
405
405
406
-
# Let's define a custom function to sample teaching style values based on experience
Generates rich contextual frameworks that define the setting, environment, and situational constraints for dialogues. Essential for creating realistic and consistent conversation backgrounds.
@@ -489,18 +486,18 @@ Now let's move on to creating complete conversations! Dialogue generators create
489
486
490
487
.. code-block:: python
491
488
492
-
from sdialog.personas importMentor, Student
489
+
from sdialog.personas importTeacher, Student
493
490
from sdialog.generators import PersonaDialogGenerator
0 commit comments