From 34fd963cf85ec339df06a96f31223a709066363c Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Mon, 24 Nov 2025 14:54:53 +0530 Subject: [PATCH 1/5] chore: fix eReputation prompt --- .../eReputation-api/src/services/VotingReputationService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platforms/eReputation-api/src/services/VotingReputationService.ts b/platforms/eReputation-api/src/services/VotingReputationService.ts index 0b1292d8b..87b4bcb8b 100644 --- a/platforms/eReputation-api/src/services/VotingReputationService.ts +++ b/platforms/eReputation-api/src/services/VotingReputationService.ts @@ -458,6 +458,8 @@ IMPORTANT: - The score must be between 1 and 5 (inclusive) - Consider how well the references align with the group's charter and values - Focus on voting-relevant reputation factors mentioned in the charter +- If the charter has explicit instructions on what they consider for eVoting, DO NOT consider any other group values to make a reference. +- If someone has no references give them a score of 1, unless explcitly stated in the charter that they shall get another score. - Provide a ONE SENTENCE justification explaining the score Respond with a JSON object in this exact format: From 3bf63e49742037cfe0fd94ee51364ad33fb9d9a1 Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Mon, 24 Nov 2025 15:07:52 +0530 Subject: [PATCH 2/5] chore: fix eReputation prompt --- .../eReputation-api/src/services/VotingReputationService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platforms/eReputation-api/src/services/VotingReputationService.ts b/platforms/eReputation-api/src/services/VotingReputationService.ts index 87b4bcb8b..8df037ceb 100644 --- a/platforms/eReputation-api/src/services/VotingReputationService.ts +++ b/platforms/eReputation-api/src/services/VotingReputationService.ts @@ -415,6 +415,8 @@ IMPORTANT: - Consider how well the references align with the group's charter and values - Focus on voting-relevant reputation factors mentioned in the charter - Provide a ONE SENTENCE justification explaining each score +- If the charter has explicit instructions on what they consider for eVoting, DO NOT consider any other group values to make a reference. +- If someone has no references give them a score of 1, unless explcitly stated in the charter that they shall get another score. Respond with a JSON array in this exact format: [ From db73a568eda26eca62c6cd88c3e741d6b767eb9a Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Mon, 24 Nov 2025 15:08:09 +0530 Subject: [PATCH 3/5] chore: make promtp more explicit --- .../eReputation-api/src/services/VotingReputationService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/eReputation-api/src/services/VotingReputationService.ts b/platforms/eReputation-api/src/services/VotingReputationService.ts index 8df037ceb..c0e0aea4b 100644 --- a/platforms/eReputation-api/src/services/VotingReputationService.ts +++ b/platforms/eReputation-api/src/services/VotingReputationService.ts @@ -412,7 +412,7 @@ Based on the group charter and the references provided, calculate a reputation s IMPORTANT: - Each score must be between 1 and 5 (inclusive) -- Consider how well the references align with the group's charter and values +- Consider how well the references align with the group's charter and values, only consider the values mentioned in the charter for eVoting, and only consider the references that are relevant to the values mentioned in the charter for eVoting. - Focus on voting-relevant reputation factors mentioned in the charter - Provide a ONE SENTENCE justification explaining each score - If the charter has explicit instructions on what they consider for eVoting, DO NOT consider any other group values to make a reference. From b3f5adafd359e35c5c93641f636a25756f8e573b Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Mon, 24 Nov 2025 15:08:09 +0530 Subject: [PATCH 4/5] chore: make promtp more explicit --- .../eReputation-api/src/services/VotingReputationService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/eReputation-api/src/services/VotingReputationService.ts b/platforms/eReputation-api/src/services/VotingReputationService.ts index 8df037ceb..435668ddb 100644 --- a/platforms/eReputation-api/src/services/VotingReputationService.ts +++ b/platforms/eReputation-api/src/services/VotingReputationService.ts @@ -386,6 +386,7 @@ export class VotingReputationService { charter: string, membersData: Array<{ ename: string; userName: string; userId: string; references: Array<{ content: string; numericScore?: number; author: string }> }> ): string { + console.log("Building bulk voting prompt for charter"); const membersCSV = membersData.map(member => { const refsText = member.references.length > 0 ? member.references.map(ref => @@ -412,7 +413,7 @@ Based on the group charter and the references provided, calculate a reputation s IMPORTANT: - Each score must be between 1 and 5 (inclusive) -- Consider how well the references align with the group's charter and values +- Consider how well the references align with the group's charter and values, only consider the values mentioned in the charter for eVoting, and only consider the references that are relevant to the values mentioned in the charter for eVoting. - Focus on voting-relevant reputation factors mentioned in the charter - Provide a ONE SENTENCE justification explaining each score - If the charter has explicit instructions on what they consider for eVoting, DO NOT consider any other group values to make a reference. From 23a2bbdae0c5b32b3f9ed456047135607face293 Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Mon, 24 Nov 2025 15:41:14 +0530 Subject: [PATCH 5/5] feat: make promtp a bit tighter --- .../eReputation-api/src/services/VotingReputationService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/eReputation-api/src/services/VotingReputationService.ts b/platforms/eReputation-api/src/services/VotingReputationService.ts index 435668ddb..bb7fd5edb 100644 --- a/platforms/eReputation-api/src/services/VotingReputationService.ts +++ b/platforms/eReputation-api/src/services/VotingReputationService.ts @@ -413,9 +413,10 @@ Based on the group charter and the references provided, calculate a reputation s IMPORTANT: - Each score must be between 1 and 5 (inclusive) -- Consider how well the references align with the group's charter and values, only consider the values mentioned in the charter for eVoting, and only consider the references that are relevant to the values mentioned in the charter for eVoting. +- Only consider the values mentioned in the charter for eVoting explicitly do not consider anything else, and only consider the references that are relevant to the values mentioned in the charter for eVoting. - Focus on voting-relevant reputation factors mentioned in the charter - Provide a ONE SENTENCE justification explaining each score +- Only consider values and ereferences which match one to one, and do not consider things where you need to make a guess or assumption, if you are not sure always err to caution. - If the charter has explicit instructions on what they consider for eVoting, DO NOT consider any other group values to make a reference. - If someone has no references give them a score of 1, unless explcitly stated in the charter that they shall get another score.