Skip to content

Commit

Permalink
chore: improve llm instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
derogab committed Aug 14, 2024
1 parent 870670a commit 4f41e7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
});
Expand Down

0 comments on commit 4f41e7a

Please sign in to comment.