Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed Apr 30, 2024
1 parent ddda4cc commit 41fc6a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lambdas/bedrock_invoker/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 41fc6a4

Please sign in to comment.