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
constprompt=`Given the following quotes, what is a good topic for them? Return only the topic as a Markdown heading with no leading #. No bold (**) or italics (*) are needed.`;
@@ -271,15 +181,6 @@ const main = async () => {
271
181
272
182
console.log(quotes.length+" quotes found.");
273
183
274
-
// let clusteredQuotes = clusterEmbeddings(quotes, CLUSTER_THRESHOLD);
275
-
276
-
// Example usage
277
-
// const data = [
278
-
// [1, 2],
279
-
// [3, 4],
280
-
// [5, 6],
281
-
// [7, 8],
282
-
// ];
283
184
constk=5;
284
185
constassignments=kmeans(
285
186
quotes
@@ -288,7 +189,6 @@ const main = async () => {
288
189
k
289
190
);
290
191
291
-
// console.log(assignments);
292
192
293
193
// convert each cluster into a heading and a list of quotes in markdown under it and write to a file
0 commit comments