From 4f41e7a5aecb2661367c056718af8452fc6db849 Mon Sep 17 00:00:00 2001 From: Gabriele De Rosa Date: Wed, 14 Aug 2024 23:45:30 +0200 Subject: [PATCH] chore: improve llm instructions --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 66f56a7..4f8883f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,11 @@ export default { // Get the caller. const llamaResponse = await env.AI.run("@cf/meta/llama-3-8b-instruct", { messages: [ - { role: "system", content: "You are an assistant with only one task: finding the caller's phone number from the voicemail email. You MUST reply with only the caller number." }, + { role: "system", content: "You are an assistant with only one task." }, + { role: "system", content: "The task: find the caller's phone number from a voicemail email." }, + { role: "system", content: "You will receive the voicemail as unique input." }, + { role: "system", content: "Be careful not to confuse the caller's phone number with the number of the called party." }, + { role: "system", content: "You MUST reply with only the caller number." }, { role: "user", content: emailSubject }, ], });