From 71105028bc6a4f500cf746ca5b34fffb6f9376c9 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Fri, 21 Feb 2025 21:12:58 +0300 Subject: [PATCH] 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();