@@ -34,7 +34,7 @@ _Note: Most type checkers will falsely warn_ `ai_personas` _is not subscriptable
3434
3535## Examples
3636
37- ##### Find personas by keyword:
37+ #### Find personas by keyword:
3838
3939``` py
4040def find_personas (keyword ):
@@ -47,7 +47,7 @@ print(find_personas('coach'))
4747# => ['Interview Preparation Coach', 'Life Coach', ...]
4848```
4949
50- ##### Get prompt for a persona:
50+ #### Get prompt for a persona:
5151
5252``` py
5353def get_prompt (persona ):
@@ -57,7 +57,7 @@ print(get_prompt('Food Critic'))
5757# => I want you to act as a food critic. I will tell you about a restaurant...
5858```
5959
60- ##### Get random personas:
60+ #### Get random personas:
6161
6262``` py
6363def random_persona (qty = 1 ):
@@ -72,7 +72,7 @@ print(random_persona(10))
7272# => e.g. ['Internet Trend & Slang Intelligence', 'Tic-Tac-Toe Game', ...]
7373```
7474
75- ##### Get random prompt:
75+ #### Get random prompt:
7676
7777``` py
7878def random_prompt ():
@@ -106,7 +106,7 @@ print(random_prompt())
106106# scraping).
107107```
108108
109- ##### Fill variables in template prompts:
109+ #### Fill variables in template prompts:
110110
111111``` py
112112prompt = ai_personas[' Node.js Automation Script Developer' ][' prompt' ]
@@ -121,7 +121,7 @@ print(filled_prompt)
121121# ...
122122```
123123
124- ##### Combine prompts:
124+ #### Combine prompts:
125125
126126``` py
127127import ai_personas
@@ -145,7 +145,7 @@ print(mega_prompt)
145145# Prompt B: I want you to act as a DAX terminal...
146146```
147147
148- ##### Build system prompt:
148+ #### Build system prompt:
149149
150150``` py
151151system_prompt = ai_personas[' Study Planner' ][' prompt' ]
@@ -156,7 +156,7 @@ messages = [
156156]
157157```
158158
159- ##### Use persona w/ an LLM:
159+ #### Use persona w/ an LLM:
160160
161161``` py
162162import ai_personas
@@ -177,7 +177,7 @@ response = client.chat.completions.create(
177177print (response.choices[0 ].message.content)
178178```
179179
180- #####
180+ ####
181181
182182## License
183183
0 commit comments