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: src/llms/prompt.ts
+100-20
Original file line number
Diff line number
Diff line change
@@ -9,44 +9,74 @@ import type { PromptSection } from '../types/main'
9
9
constsections={
10
10
// Section for generating titles
11
11
titles: {
12
-
// Instructions for the AI model on how to generate titles
12
+
// Instructions and example for the AI model on how to generate titles
13
13
instruction: `- Write 5 potential titles for the video.
14
14
- The first two titles should be very, very shorter and have no subtitle.
15
15
- The last three titles can be longer and have subtitles.\n`,
16
-
// Example of how the output should be formatted
17
16
example: `## Potential Titles
18
-
17
+
19
18
1. Title Hard
20
19
2. Title Harder
21
20
3. Title Hard with a Vengeance
22
21
4. Title Hard IV: Live Free or Title Hard
23
22
5. Title Hard V: A Good Day to Die Hard\n`,
24
23
},
25
24
26
-
// Section for generating a summary
25
+
// Section for generating a short and long summary
27
26
summary: {
28
-
// Instructions for creating a concise summary
27
+
// Instructions and example for creating a short and long summary
29
28
instruction: `- Write a one sentence description of the transcript and a one paragraph summary.
30
29
- The one sentence description shouldn't exceed 180 characters (roughly 30 words).
31
30
- The one paragraph summary should be approximately 600-1200 characters (roughly 100-200 words).\n`,
32
-
// Example of the expected output format
33
-
example: `One sentence description of the transcript that encapsulates the content contained in the file but does not exceed roughly 180 characters (or approximately 30 words).
31
+
example: `## Episode Description
32
+
33
+
One sentence description of the transcript that encapsulates the content contained in the file but does not exceed roughly 180 characters (or approximately 30 words).
34
34
35
35
## Episode Summary
36
36
37
37
A concise summary of a chapter's content, typically ranging from 600 to 1200 characters or approximately 100 to 200 words. It begins by introducing the main topic or theme of the chapter, providing context for the reader. The summary then outlines key points or arguments presented in the chapter, touching on major concepts, theories, or findings discussed. It may briefly mention methodologies used or data analyzed, if applicable. The paragraph also highlights any significant conclusions or implications drawn from the chapter's content. Throughout, it maintains a balance between providing enough detail to give readers a clear understanding of the chapter's scope and keeping the information general enough to apply to various subjects. This summary style efficiently conveys the essence of the chapter's content, allowing readers to quickly grasp its main ideas and decide if they want to delve deeper into the full text.\n`,
38
38
},
39
39
40
+
// Section for generating a short summary
41
+
shortSummary: {
42
+
// Instructions and example for creating a short summary
43
+
instruction: `- Write a one sentence description of the transcript.
44
+
- The one sentence description shouldn't exceed 180 characters (roughly 30 words).\n`,
45
+
example: `## Episode Description
46
+
47
+
One sentence description of the transcript that encapsulates the content contained in the file but does not exceed roughly 180 characters (or approximately 30 words).\n`,
48
+
},
49
+
50
+
// Section for generating a long summary
51
+
longSummary: {
52
+
// Instructions and example for creating a long summary
53
+
instruction: `- Write a one paragraph summary of the transcript.
54
+
- The one paragraph summary should be approximately 600-1200 characters (roughly 100-200 words).\n`,
55
+
example: `## Episode Summary
56
+
57
+
A concise summary of a chapter's content, typically ranging from 600 to 1200 characters or approximately 100 to 200 words. It begins by introducing the main topic or theme of the chapter, providing context for the reader. The summary then outlines key points or arguments presented in the chapter, touching on major concepts, theories, or findings discussed. It may briefly mention methodologies used or data analyzed, if applicable. The paragraph also highlights any significant conclusions or implications drawn from the chapter's content. Throughout, it maintains a balance between providing enough detail to give readers a clear understanding of the chapter's scope and keeping the information general enough to apply to various subjects. This summary style efficiently conveys the essence of the chapter's content, allowing readers to quickly grasp its main ideas and decide if they want to delve deeper into the full text.\n`,
58
+
},
59
+
60
+
// Section for generating a bullet point list summary
61
+
bulletPoints: {
62
+
// Instructions and example for creating a bullet point list summary
63
+
instruction: `- Write a bullet point list summarizing the transcript.\n`,
64
+
example: `## Bullet Point Summary
65
+
66
+
- A concise summary of a chapter's content in bullet point list form.
67
+
- It begins by introducing the main topic or theme of the chapter, providing context for the reader.
68
+
- The summary then outlines key points or arguments presented in the chapter\n`,
69
+
},
70
+
40
71
// Section for creating short chapter descriptions
41
72
shortChapters: {
42
-
// Instructions for generating concise chapter summaries
73
+
// Instructions and example for generating concise chapter summaries
43
74
instruction: `- Create chapters based on the topics discussed throughout.
44
75
- Include timestamps for when these chapters begin.
45
76
- Chapters should be roughly 3-6 minutes long.
46
77
- Write a one-sentence description for each chapter (max 25 words).
47
78
- Ensure chapters cover the entire content (note the last timestamp).
48
79
- Let descriptions flow naturally from the content, avoiding formulaic templates.\n`,
49
-
// Example of the expected output format
50
80
example: `## Chapters
51
81
52
82
### 00:00 - Introduction and Beginning of Episode
@@ -56,14 +86,13 @@ const sections = {
56
86
57
87
// Section for creating medium-length chapter descriptions
58
88
mediumChapters: {
59
-
// Instructions for generating more detailed chapter summaries
89
+
// Instructions and example for generating more detailed chapter summaries
60
90
instruction: `- Create chapters based on the topics discussed throughout.
61
91
- Include timestamps for when these chapters begin.
62
92
- Chapters should be roughly 3-6 minutes long.
63
93
- Write a one-paragraph description for each chapter (~50 words).
64
94
- Ensure chapters cover the entire content (note the last timestamp).
65
95
- Let descriptions flow naturally from the content, avoiding formulaic templates.\n`,
66
-
// Example of the expected output format
67
96
example: `## Chapters
68
97
69
98
### 00:00 - Introduction and Beginning of Episode
@@ -73,14 +102,13 @@ const sections = {
73
102
74
103
// Section for creating detailed, long chapter descriptions
75
104
longChapters: {
76
-
// Instructions for generating comprehensive chapter summaries
105
+
// Instructions and example for generating comprehensive chapter summaries
77
106
instruction: `- Create chapters based on the topics discussed throughout.
78
107
- Include timestamps for when these chapters begin.
79
108
- Chapters should be roughly 3-6 minutes long.
80
109
- Write a two-paragraph description for each chapter (75+ words).
81
110
- Ensure chapters cover the entire content (note the last timestamp).
82
111
- Let descriptions flow naturally from the content, avoiding formulaic templates.\n`,
83
-
// Example of the expected output format
84
112
example: `## Chapters
85
113
86
114
### 00:00 - Introduction and Overview
@@ -90,9 +118,8 @@ const sections = {
90
118
91
119
// Section for highlighting key takeaways
92
120
takeaways: {
93
-
// Instructions for summarizing main points
121
+
// Instructions and example for summarizing main points
94
122
instruction: `- Include three key takeaways the listener should get from the episode.\n`,
95
-
// Example of how the takeaways should be formatted
96
123
example: `## Key Takeaways
97
124
98
125
1. Full-stack development requires a broad understanding of both client-side and server-side technologies, enabling developers to create more cohesive and efficient web applications.
@@ -102,31 +129,48 @@ const sections = {
102
129
103
130
// Section for generating comprehension questions
104
131
questions: {
105
-
// Instructions for creating relevant questions about the content
132
+
// Instructions and example for creating relevant questions about the content
106
133
instruction: `- Include a list of 10 questions to check the listeners' comprehension of the material.
107
-
- Ensure questions cover all major sections of the content.\n`,
108
-
// Example of how the questions should be formatted
134
+
- Ensure questions cover all major sections of the content.
135
+
- Ensure the questions are correct, emphasize the right things, and aren't redundant.
136
+
- Do not say things like "the instructor describes" or "according to the lesson," assume that all the questions relate to the lesson told by the instructor.
137
+
- The first five questions should be beginner level questions and the last five should be expert level questions.\n`,
109
138
example: `## Questions to Check Comprehension
110
139
140
+
### Beginner Questions
141
+
111
142
1. What are the three main components of the modern web development stack?
112
143
2. How has the role of JavaScript evolved in web development over the past decade?
113
144
3. What are the key differences between React and Vue.js?
114
145
4. Why is server-side rendering beneficial for web applications?
115
146
5. What is the purpose of a RESTful API in full-stack development?
147
+
148
+
### Expert Questions
149
+
116
150
6. How does Node.js differ from traditional server-side languages like PHP or Python?
117
151
7. What are the main considerations when choosing a database for a web application?
118
152
8. How do containerization technologies like Docker impact web development and deployment?
119
153
9. What role does responsive design play in modern web development?
120
154
10. How can developers ensure the security of user data in web applications?\n`,
121
155
},
122
156
157
+
// Section for generating frequently asked questions and answers
158
+
faq: {
159
+
// Instructions and example for creating relevant questions about the content
160
+
instruction: `- Include a list of 5-10 frequently asked questions and answers based on the transcript.
161
+
- Ensure questions and answers cover all major sections of the content.\n`,
162
+
example: `## FAQ
163
+
164
+
Q: What are the three main components of the Jamstack?
165
+
A: JavaScript, APIs, and markup.\n`,
166
+
},
167
+
123
168
// Section for generating a blog outline and first draft
124
169
blog: {
125
-
// Instructions for creating an outline and blog draft
170
+
// Instructions and example for creating an outline and blog draft
126
171
instruction: `- Generate a blog outline and first draft for a blog post based on this piece of content.
127
172
128
173
- Make sure the blog post is at least 750 words.\n`,
129
-
// Example of how the outline and draft should be formatted
130
174
example: `## Blog Outline
131
175
132
176
1. Part 1
@@ -137,6 +181,42 @@ const sections = {
137
181
138
182
First draft of a blog.\n`,
139
183
},
184
+
185
+
// Section for generating a rap song based on the transcript
186
+
rapSong: {
187
+
// Instructions and example for creating the rap song
188
+
instruction: `- Write a highly complex, multi-syllabic rhyming, Eminem inspired rap based on this transcript.
189
+
- Do not rhyme any words with themselves.
190
+
- Give it a basic song structure with verses, choruses, and a bridge.
191
+
- Give the song three potential titles.\n`,
192
+
example: `## Song
193
+
194
+
Lyrics to the song.\n`
195
+
},
196
+
197
+
// Section for generating a rock song based on the transcript
198
+
rockSong: {
199
+
// Instructions and example for creating the rock song
200
+
instruction: `- Write a high-energy, anthemic rock song with powerful imagery and impactful, multi-layered lyrics.
201
+
- Use metaphors and vivid language to convey a sense of rebellion or freedom.
202
+
- Structure the song with verses, choruses, and a bridge.
203
+
- Provide the song with three potential titles.\n`,
204
+
example: `## Song
205
+
206
+
Lyrics to the song.\n`
207
+
},
208
+
209
+
// Section for generating a country song based on the transcript
210
+
countrySong: {
211
+
// Instructions and example for creating the country song
212
+
instruction: `- Write a heartfelt, storytelling country song with simple yet emotionally charged lyrics.
213
+
- Include themes of life, love, and the struggles of everyday people.
214
+
- Structure the song with verses, choruses, and a bridge.
0 commit comments