πŸ› οΈ Lab 7 β€” Smart Document Analyzer

Type: Guided lab Time: ~90 minutes Difficulty: Intermediate Cost: Free (Textract: 1000 free pages/month for 3 months)


🎯 What you’ll build

Upload any PDF or document image to S3 and watch AWS automatically extract the text (Textract), analyze the sentiment + entities (Comprehend), and save the results to DynamoDB. Real production AI in 90 minutes.

πŸ“‹ Prerequisites

  • Comfortable creating Lambda functions
  • Basic Python (provided starter handles 90% of it)
  • An understanding of IAM roles for Lambda

πŸ› οΈ AWS Services used

  • S3 β€” document uploads
  • Lambda β€” orchestrator that chains the AI calls
  • Textract β€” pulls text from PDFs and images
  • Comprehend β€” sentiment + entity extraction
  • DynamoDB β€” stores analysis results

πŸ“– The full walkthrough

Open Week4_Lab7_Smart_Doc_Analyzer.html in your browser. It’s a complete step-by-step guide with screenshots, code snippets, and inline hints.

πŸ’‘ The HTML file is self-contained β€” no install, no internet needed once you’ve cloned the repo. Just double-click to open in your browser.


πŸ†˜ If you get stuck

  1. Re-read the relevant step in the HTML walkthrough
  2. Check the Common Mistakes callouts (red boxes in the walkthrough)
  3. Expand the πŸ’‘ Hint sections for guidance
  4. WhatsApp the group with a screenshot of the error
  5. Tag your post with #week4done

πŸŽ“ Submission

  1. Screenshot of a DynamoDB item showing extracted text + sentiment + entities from a real document
  2. Bonus: try it with your own CV and screenshot the entities Comprehend pulled out

⬅️ Back to Week 4