Skip to content

Conversation

@kieran-wilkinson-4
Copy link
Contributor

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

Summary

Updates prompt and message structure for easier understanding and providing context

Details

  • Updated formatting prompting to be shorter and stricter
  • Increase max tokens to 1500, to account for citation information
  • Stricter handling of data relevance to improve bot confidence
  • Add Citation buttons for easy viewing of extracted data
    • Stricter handling of citation formatting to allow lambda to extract data
  • Remove breakdown steps
    • Reduces token usage
    • Form formatting creates "natural" path of creation

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

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

AEA-5919

@kieran-wilkinson-4 kieran-wilkinson-4 changed the title Aea 5919 add citation buttons Update: [AEA-5919] - Split reformulation and rag prompts, versioning and refinement Dec 2, 2025
@kieran-wilkinson-4 kieran-wilkinson-4 changed the title Update: [AEA-5919] - Split reformulation and rag prompts, versioning and refinement Update: [AEA-5919] - Split reformulation and rag prompts, ai model and add citation buttons Dec 2, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
65.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@anthony-nhs anthony-nhs merged commit 782b3e7 into main Dec 10, 2025
11 of 12 checks passed
@anthony-nhs anthony-nhs deleted the AEA-5919-Add-Citation-Buttons branch December 10, 2025 17:32
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.

3 participants