Lesson 2 of 3 AWS Managed AI Services

Analysing Images, Documents and Search with Managed AI Services

This lesson explains the managed AI services for images and video, documents, enterprise search and personalised recommendations.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish Amazon Rekognition, Amazon Textract, Amazon Bedrock Knowledge Bases and Amazon Personalize.
  • Describe how intelligent document processing combines Textract, Comprehend and human review.

The services at a glance

Several ready-made services work with images, documents and search. Amazon Rekognition analyses images and video: it detects objects and scenes, analyses and compares faces, reads text in images, moderates unsafe content and checks for protective equipment, and Custom Labels learns to recognise your own objects from a few examples. Amazon Textract extracts printed and handwritten text from documents, along with forms, tables and signatures, keeping the document's structure, and has specialised APIs for invoices, receipts and identity documents.

Amazon Personalize provides real-time recommendations, using the same technology as Amazon.com. Searching company documents in natural language is now a generative AI task: Amazon Bedrock Knowledge Bases retrieves relevant passages and answers with citations, as described in the Amazon Bedrock chapter. The following table summarises the services.

ServiceDoesKey features
Amazon RekognitionImage and video analysisObjects and scenes, facial analysis and comparison, celebrities, text in images, content moderation, PPE detection; Custom Labels learns your own objects from a few images
Amazon TextractDocument extractionPrinted and handwritten text, forms (key-value pairs), tables, signatures, queries; keeps document structure; APIs for invoices, receipts and IDs
Amazon Bedrock Knowledge BasesQuestion answering over company documentsRetrieves relevant passages from S3, SharePoint, Confluence, Salesforce and more, and answers with citations (RAG)
Amazon PersonalizeReal-time recommendations"Customers also viewed", personalised rankings, user segments; same technology as Amazon.com
Scenario questions

Vision, documents and recommendations

Exam skills 1.2.5

Choose the managed service for each requirement.

Log in to try this activity Interactive activities are free with an account.

Intelligent document processing

Textract goes beyond simple OCR by preserving structure. It is commonly combined with Comprehend, to classify documents and extract entities, and with a human review step for low-confidence results.

When the content is varied, such as documents, images, audio and video, Amazon Bedrock Data Automation uses generative AI to turn it into structured output, such as extracted fields and summaries, without building a pipeline of separate services.

The following diagram chains the services for document processing.

Intelligent document processing. Amazon Textract extracts text, forms and tables from scanned documents, keeping their structure. Amazon Comprehend classifies the documents and extracts entities. Results with low confidence go to a human review step, and the structured results are stored for downstream systems. For varied content, Bedrock Data Automation produces structured output with generative AI.
Managed services combine without training a model.
True or false

Document processing

Exam skills 1.2.5 · 2.3.1

Check your understanding of intelligent document processing on AWS.

Log in to try this activity Interactive activities are free with an account.
Worked example

An intelligent insurance claims process

Customers submit claims with a form, photos of damage and receipts. The insurer automates the first review with managed services:

TaskService
Extract policy number, dates and amounts from the claim form and receipts, keeping table structureAmazon Textract
Check photos show a damaged car and contain no inappropriate contentAmazon Rekognition (labels and moderation)
Recognise the company's own vehicle parts in photosRekognition Custom Labels, trained on a few hundred images
Send unclear extractions to a claims handlerA human review step for low-confidence Textract results
Let handlers ask "what does policy X cover for hail damage?"Amazon Bedrock Knowledge Bases over the policy documents

No data scientists are needed. If the insurer later wanted to predict fraud from claim history, that would be a custom model in SageMaker AI, because no pre-trained service knows its claims data.

Check yourself

Which service finds objects, scenes and faces in images and video?

Show answer

Amazon Rekognition. Amazon Textract extracts text, forms and tables from documents.

Exam Tips

Remember for the exam

  • Detecting objects, faces or unsafe content in images and video points to Amazon Rekognition.
  • To recognise your own objects from only a few images, use Rekognition Custom Labels.
  • Extracting forms, tables and handwriting from documents points to Amazon Textract.
  • Natural-language questions over company documents point to Bedrock Knowledge Bases (RAG).
  • Personalised product recommendations point to Amazon Personalize.