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/scripts/glossary.genai.js
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ script({
9
9
default: false,
10
10
},
11
11
},
12
+
temperature: 0.1,
12
13
});
13
14
14
15
// Find all markdown files under lessons, excluding translations
@@ -66,11 +67,15 @@ ${allContent}
66
67
67
68
2. For each term, provide a concise one-line definition (maximum 20 words)
68
69
69
-
3. Focus on terms that would be valuable for developers learning about AI and JavaScript
70
+
3. Focus on terms that would be valuable for developers learning about AI and JavaScript. Avoid terms that are too basic or not relevant to the context of AI and JavaScript development
70
71
71
72
4. Exclude common programming terms that most developers would know (like "function", "variable", "array") and historical terms that are only there for the storytelling aspect of the lessons.
72
73
73
-
5. Format each entry as: **Term**: Definition
74
+
5. Exclude terms that are too similar to existing terms. For example, "Chain of Thought" and "Chain of Thought Prompting" are too similar and should not both be included.
75
+
76
+
6. Format each entry as: **Term**: Definition
77
+
78
+
7. It's OK to not output anything if no new terms are found. In that case, just return an empty string.
74
79
75
80
${
76
81
existingTerms.size>0
@@ -85,6 +90,7 @@ Provide only the glossary entries, one per line, sorted alphabetically. Do not i
85
90
86
91
// Combine existing and new terms
87
92
letfinalGlossary="";
93
+
letglossarySize,previousSize=0;
88
94
89
95
if(existingGlossary&&!env.vars.force){
90
96
// Parse existing glossary and add new terms
@@ -132,6 +138,8 @@ if (existingGlossary && !env.vars.force) {
0 commit comments