From 41fc6a4082606f4945a40270bd8a6422d378f487 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Tue, 30 Apr 2024 16:04:12 -0300 Subject: [PATCH] improve logging --- lambdas/bedrock_invoker/src/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lambdas/bedrock_invoker/src/index.py b/lambdas/bedrock_invoker/src/index.py index c486c0e..0a5bf09 100644 --- a/lambdas/bedrock_invoker/src/index.py +++ b/lambdas/bedrock_invoker/src/index.py @@ -30,6 +30,8 @@ def lambda_handler(event, context): extracted_text = s3_object['Body'].read().decode('utf-8') print(f"Extracted text that is {len(extracted_text)} characters long") + print(f"Preview of the first 100 chars: {extracted_text[:100]}") + claude_body = { "anthropic_version": "bedrock-2023-05-31",