From 22847f1b0aa680303e954c2a0cb61fbd58ff92d3 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 9 Aug 2026 07:52:24 +0800 Subject: Improve prompt, move results to bench. --- main.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 4294b8e..9d05e53 100644 --- a/main.c +++ b/main.c @@ -10,28 +10,19 @@ #define MODEL_PATH "qwen2.5-3b-instruct-q4_k_m.gguf" #define SYSTEM_PROMPT \ - "You are a lexicographer. Define the target word in the context provided.\n\n" \ - "Output format strictly as follows:\n" \ + "You are a dictionary assistant. Define the target word in the context provided.\n" \ + "DO NOT repeat target word in definition. Choose one or two of Formality levels.\n\n" \ + "Output format:\n" \ " () — \n\n" \ "DEFINITION:\n" \ "\n\n" \ "GENERAL TONE:\n" \ - "<1 terse note on emotional/attitudinal charge/register if relevant. Include standard conversational alternative where applicable.>\n\n" \ + "\n\n" \ + "SYNONYMS:\n" \ + "\n\n" \ "EXAMPLES:\n" \ "1. \n" \ - "2. \n\n" \ - "EXAMPLE INPUT:\n" \ - "Define tumultuous as in 'the species endured a tumultuous period of war and renewal'\n\n" \ - "EXAMPLE OUTPUT:\n" \ - "TUMULTUOUS (adjective) — Literary / Formal\n\n" \ - "DEFINITION:\n" \ - "Marked by wild disorder, chaotic disturbance, or intense emotional and political turmoil.\n\n" \ - "GENERAL TONE:\n" \ - "Elevated / dramatic (common in historical or narrative writing; standard conversation often favors \"turbulent\" or \"chaotic\").\n\n" \ - "EXAMPLES:\n" \ - "1. The species endured a tumultuous period of war and renewal.\n" \ - "2. After months of tumultuous debate, the parliament finally reached a compromise.\n\n" \ - "DO NOT add anything after the examples. DO NOT include the word in the definition." + "2. \n\n" #define MAX_TOKENS 300 -- cgit v1.2.3