From 29669d8a275a63652fdfbba9dc6586db6f9a6f14 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Fri, 21 Feb 2025 21:11:52 +0300 Subject: [PATCH 1/3] style prettier --- README.md | 4 ++-- src/adminUtils.ts | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8f32b76..052c00b 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,9 @@ Resets the Redis database. npm run reset ``` -## Commands *(Deprecated)* +## Commands _(Deprecated)_ -It still can be run with ```npm run commandBot```but no we have buttons UI for smooth user experience. +It still can be run with `npm run commandBot`but no we have buttons UI for smooth user experience. ### /gptsurvey create diff --git a/src/adminUtils.ts b/src/adminUtils.ts index edb8ad7..919ee57 100644 --- a/src/adminUtils.ts +++ b/src/adminUtils.ts @@ -636,8 +636,8 @@ export const handleModals = async (interaction, client, redisClient) => { channelId, ); } else if (interaction.customId.startsWith("postRespondModal-")) { - await interaction.deferReply({ ephemeral: true }); - + await interaction.deferReply({ ephemeral: true }); + const surveyName = interaction.customId.split("-").slice(1).join("-"); const channelId = interaction.fields.getTextInputValue("channelId"); @@ -649,7 +649,9 @@ export const handleModals = async (interaction, client, redisClient) => { client, ); - await interaction.editReply("Done if there is no problem about the survey :)"); + await interaction.editReply( + "Done if there is no problem about the survey :)", + ); } else if (interaction.customId.startsWith("viewPublicModal-")) { const surveyName = interaction.customId.split("-").slice(1).join("-"); const channelId = interaction.fields.getTextInputValue("channelId"); From 71105028bc6a4f500cf746ca5b34fffb6f9376c9 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Fri, 21 Feb 2025 21:12:58 +0300 Subject: [PATCH 2/3] feat improve prompt --- src/helpers/prompts.ts | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/helpers/prompts.ts b/src/helpers/prompts.ts index fe2b5be..f00d562 100644 --- a/src/helpers/prompts.ts +++ b/src/helpers/prompts.ts @@ -38,10 +38,23 @@ export const FEEDBACK_SUMMARIZE_PROMPT = ( feedbacks, ) => ` +# INSTRUCTIONS: + You are an AI assistant that specializes in summarizing project proposals and their associated feedbacks. -Your task is to generate a concise and insightful summary for the given project proposals and especially +Your task is to generate a concise and clear summary for the given project proposals and especially their feedbacks for Mina Ecosystem Funding program. You need to include all meaningful summarized feedbacks. + +# WARNINGS: + +- If the provided feedbacks are few or very brief, +summarize only what is present and refrain from generating extra strengths, concerns, or themes etc. +- So, you don't have to generate everything in the guideline. +- Do not add any assumptions or conclusions that are not directly supported by the feedback data. +- Only include insights that are explicitly mentioned in the provided feedbacks. Do not infer or generate. + +# GIVEN DATA FORMAT: + You are given these datas to summarize: - Proposal Name: ${proposalName} - Description: ${proposalDescription} @@ -49,8 +62,9 @@ You are given these datas to summarize: - Funding Round ID: ${fundingRoundId} - Feedbacks: ${formatFeedbacks(feedbacks)} -Summary Guideline: -Your response should focus primarily on analyzing and summarizing the feedback. +# SUMMARY GUIDELINE: +Your response should focus primarily on analyzing and summarizing the feedbacks. You can include these points: + * Brief Proposal Summary: A 2-3 sentence summary explaining the core idea, objective, and significance of the proposal. * Key Strengths (Based on Feedbacks): Highlight the main positive aspects of the proposal as mentioned by users. * Main Concerns (Based on Feedbacks): Identify common criticisms, potential risks, or areas that need improvement. @@ -59,5 +73,4 @@ Include insights such as usability concerns, technical feasibility, business pot * Overall Sentiment: Determine whether the general sentiment is positive, neutral, or negative based on user feedback. * Constructive Suggestions: If applicable, provide recommendations for improving the proposal. * Edge Opinions: Include edge sentiments if you thinks it is meaningful as an great AI Agent. - `.trim(); From 24decc8f46c15b7cfcbabcba975b65ad6fe5524b Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Fri, 21 Feb 2025 21:13:33 +0300 Subject: [PATCH 3/3] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ecd2e89..1101f56 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "discord-bot", "type": "module", - "version": "0.4.6", + "version": "0.4.7", "description": "", "main": "index.js", "scripts": {