decreasing bucket size
This commit is contained in:
@@ -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[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user