Skip to content

Conversation

@kieran-wilkinson-4
Copy link
Contributor

@kieran-wilkinson-4 kieran-wilkinson-4 commented Dec 19, 2025

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 19, 2025

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

AEA-6083

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

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.

1 participant