Skip to content

Commit 90bd9ed

Browse files
authored
Merge pull request #68 from Firefox-AI/improve-insight-v1
increase the size of history visits to 3000
2 parents 0b8c878 + b92fd48 commit 90bd9ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

browser/components/smartwindow/content/insights.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ function addInsightsToData(payload) {
13001300
upsertedByCategory += 1;
13011301
}
13021302

1303-
// Legacy chips: keep the short text so UI shows tags today
1303+
// Legacy chips: keep the summary text so UI shows tags today
13041304
const label = summary;
13051305
if (category) {
13061306
if (!insightsData[category]) {
@@ -1469,7 +1469,7 @@ export async function analyzeHistorySmart() {
14691469
(meta.history?.lastMicros || 0) === 0;
14701470

14711471
if (firstRun) {
1472-
return generateInsightsFromHistory({ days: 60, maxResults: 1000 }); // unchanged full run
1472+
return generateInsightsFromHistory({ days: 60, maxResults: 3000 }); // full run
14731473
}
14741474
return updateInsightsFromHistoryIncremental();
14751475
}
@@ -1517,9 +1517,9 @@ export async function generateInsightsFromHistory(
15171517
const [agg_domains, agg_titles, agg_searches] = aggregateSessions(prepared);
15181518

15191519
const topk = topkAggregates(agg_domains, agg_titles, agg_searches, {
1520-
k_domains: 50,
1520+
k_domains: 100,
15211521
k_titles: 60,
1522-
k_searches: 10,
1522+
k_searches: 25,
15231523
});
15241524

15251525
console.log(`[Insights] Generating insights with LLM...`);

0 commit comments

Comments
 (0)