Skip to content

Commit ab1056c

Browse files
committed
Update AwsBedrockService medical analysis prompt for clarity
- Revised the medical analysis prompt in AwsBedrockService tests to enhance clarity and focus on lab reports. - Ensured consistency in prompt messaging across test cases.
1 parent 0889d3a commit ab1056c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/document-processor/services/aws-bedrock.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('AwsBedrockService', () => {
219219
// Verify the invokeBedrock was called with the correct prompt
220220
expect(service['invokeBedrock']).toHaveBeenCalled();
221221
const prompt = (service['invokeBedrock'] as any).mock.calls[0][0];
222-
expect(prompt).toContain('Please analyze this medical document carefully');
222+
expect(prompt).toContain('Analyze this medical document with focus on lab reports');
223223
});
224224

225225
it('should correctly format the request for Claude models', async () => {
@@ -242,7 +242,7 @@ describe('AwsBedrockService', () => {
242242
// Verify the invokeBedrock was called with the correct prompt
243243
expect(service['invokeBedrock']).toHaveBeenCalled();
244244
const prompt = (service['invokeBedrock'] as any).mock.calls[0][0];
245-
expect(prompt).toContain('Please analyze this medical document carefully');
245+
expect(prompt).toContain('Analyze this medical document with focus on lab reports');
246246
});
247247

248248
it('should throw an error for invalid input', async () => {

0 commit comments

Comments
 (0)