Skip to content

Commit d13c827

Browse files
committed
Enlarged example sub-headings ↞ [auto-sync from https://github.com/KudoAI/ai-personas/tree/main/python]
1 parent 337373c commit d13c827

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

ai-personas/docs/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4040
def 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
5353
def 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
6363
def 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
7878
def 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
112112
prompt = 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
127127
import 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
151151
system_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
162162
import ai_personas
@@ -177,7 +177,7 @@ response = client.chat.completions.create(
177177
print(response.choices[0].message.content)
178178
```
179179

180-
#####
180+
####
181181

182182
## License
183183

0 commit comments

Comments
 (0)