File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ _Note: Most type checkers will falsely warn_ `ai_personas` _is not subscriptable
3434
3535## Examples
3636
37- Search by keyword:
37+ ##### Search by keyword:
3838
3939``` py
4040keyword = ' coach'
@@ -53,7 +53,7 @@ for persona, data in ai_personas.items():
5353# ...
5454```
5555
56- Get 6 random personas:
56+ ##### Get 6 random personas:
5757
5858``` py
5959import random
@@ -70,7 +70,7 @@ for persona in random.sample(list(ai_personas), 6):
7070# China Business Law Assistant
7171```
7272
73- Get random prompt:
73+ ##### Get random prompt:
7474
7575``` py
7676import random
@@ -103,7 +103,7 @@ print(rand_persona['prompt'])
103103# scraping).
104104```
105105
106- Fill variables in template prompts :
106+ ##### Fill variables in template prompts:
107107
108108``` py
109109prompt = ai_personas[' Node.js Automation Script Developer' ][' prompt' ]
@@ -118,7 +118,7 @@ print(filled_prompt)
118118# ...
119119```
120120
121- Combine prompts:
121+ ##### Combine prompts:
122122
123123``` py
124124import ai_personas
@@ -142,7 +142,7 @@ print(mega_prompt)
142142# Prompt B: I want you to act as a DAX terminal...
143143```
144144
145- Build system prompt:
145+ ##### Build system prompt:
146146
147147``` py
148148system_prompt = ai_personas[' Study Planner' ][' prompt' ]
You can’t perform that action at this time.
0 commit comments