Skip to content

Conversation

@kieran-wilkinson-4
Copy link
Contributor

Summary

Improved bot responses

Details

  • Moved from "Amazon Nova" to "Meta Llama"
    • Nova doesn't handle 0.0 temperature (min 0.0001) which still creates significant variation in responses
    • Nova's prompt engineering was very different to Anthropic's Claude
      • Llama is a lot more similar, meaning the prompts can be much easier switched over
  • Fixed regex for "Markdown" -> (Slacks) "Mrkdwn"
    • Fixed tests for regex
  • Updated System Prompt to be shorter and stricter
    • Longer prompts weaken directions, leading to mistakes in responses or the bot ignoring directions altogether
    • Longer prompts also eat up tokens (which we want to minimise)
    • Providing examples strengthens understanding
  • Increased logging throughout response generation
    • Inc. Response from Bedrock, parsing, formatting, and Slack's block building

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-5920

@kieran-wilkinson-4 kieran-wilkinson-4 changed the title Update: [AEA-6083] - Llama Prompt Engineering Update: [AEA-5920] - Llama Prompt Engineering Dec 23, 2025
@sonarqubecloud
Copy link

@kieran-wilkinson-4 kieran-wilkinson-4 merged commit 8b34448 into main Dec 23, 2025
12 checks passed
@kieran-wilkinson-4 kieran-wilkinson-4 deleted the AEA-5920-Llama-Prompt-Engineering branch December 23, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants