From 09607ba7c7b27d8f7b46bc62efe6fd47f14f1ab9 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 9 Mar 2026 03:15:21 +0100 Subject: [PATCH] Weigh community importance score by answer count to avoid low sample bias --- backend/api/src/get-compatibililty-questions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/src/get-compatibililty-questions.ts b/backend/api/src/get-compatibililty-questions.ts index d469a185..d558e7b9 100644 --- a/backend/api/src/get-compatibililty-questions.ts +++ b/backend/api/src/get-compatibililty-questions.ts @@ -39,7 +39,7 @@ export const getCompatibilityQuestions: APIHandler<'get-compatibility-questions' cp.created_time, cp.creator_id, cp.category, - cp.community_importance_score, + cp.community_importance_score * (cp.answer_count::float / (cp.answer_count + 20)) AS community_importance_score, cp.answer_count, -- locale-aware fields