decreasing bucket size
All checks were successful
Recommender Build and Deploy (internal) / Build Recommender Image (push) Successful in 4m6s
Recommender Build and Deploy (internal) / Deploy Recommender (internal) (push) Successful in 1m2s

This commit is contained in:
2026-04-03 10:54:28 -03:00
parent a7d12acce6
commit 0944ec62bb

View File

@@ -20,10 +20,7 @@ import { generateTitle } from '../agents/titleGenerator.js';
type RecommendationRecord = typeof recommendations.$inferSelect; type RecommendationRecord = typeof recommendations.$inferSelect;
function getBucketCount(count: number): number { function getBucketCount(count: number): number {
if (count <= 50) return 1; return Math.ceil(count / 15);
if (count <= 100) return 2;
if (count <= 150) return 3;
return 4;
} }
function deduplicateCandidates(candidates: RetrievalCandidate[], seenTitles?: Set<string>): RetrievalCandidate[] { function deduplicateCandidates(candidates: RetrievalCandidate[], seenTitles?: Set<string>): RetrievalCandidate[] {