Ingesting and Organizing Unstructured Data
This lesson explains how documents, images, audio and video are stored so they can be found, labelled, converted and embedded, and why their metadata matters as much as the files.
Learning outcomes
After completing this lesson, you will be able to:
- Organise unstructured data in S3 with consistent prefixes and metadata.
- Choose a tool for ingesting media at scale.
- Convert content into text with services such as Transcribe and Textract.
Organising unstructured data in S3
S3 is the natural store for unstructured files. A consistent prefix layout, such as images/<source>/<date>/, makes data easy to process in parallel and to govern with lifecycle rules and access policies. Object metadata and tags carry simple attributes, while richer information, such as labels, captions, speaker names or document types, is kept in a manifest file (JSON Lines that point to each object) or in a catalogue table that can be queried with Athena.
SageMaker AI and Ground Truth use augmented manifest files, in which each line holds the S3 URI of an object plus its labels, so a training job can read labels and files together without renaming or moving the files.
Ingesting media at scale
Machine learning on images, audio, video and documents usually starts with getting large collections of files into Amazon S3, and the right tool depends on where the media is and whether it arrives continuously. Large existing collections on premises, such as an archive of scanned documents or recorded calls, are copied with AWS DataSync, which transfers files to S3, EFS or FSx with integrity verification, scheduling and incremental runs, so later transfers copy only new files.
Live video from cameras is ingested with Amazon Kinesis Video Streams, which receives, stores and indexes media fragments so they can be played back or analysed, for example by Amazon Rekognition or a custom model. Hybrid environments, where on-premises applications keep producing files, can use AWS Storage Gateway: applications write to a local file share, and the files land in S3, where training jobs can read them.
Bring media into S3
Converting content into text and features
Many AI pipelines convert non-text content into text before embedding or analysis. Amazon Transcribe converts speech to text with timestamps, speaker diarisation, custom vocabularies for domain terms and optional PII redaction. Amazon Textract extracts printed and handwritten text, forms and tables from scanned documents. Amazon Rekognition detects labels, text and unsafe content in images and video, which can be stored as searchable metadata.
Alternatively, multimodal embedding models such as Amazon Titan Multimodal Embeddings embed images directly, so images can be searched by text or by other images without a captioning step. The following table summarises the conversion services.
| Content | Service | Output |
|---|---|---|
| Audio, call recordings | Amazon Transcribe | Transcript with timestamps and speakers |
| Scanned documents, forms | Amazon Textract | Text, key-value pairs, tables |
| Images and video | Amazon Rekognition | Labels, text, faces, moderation labels |
| Images for similarity search | Titan Multimodal Embeddings | Vectors in the same space as text |
The following diagram shows a pipeline that makes five years of call recordings, held on an on-premises NAS, searchable in a knowledge base.

Turn content into text
Searchable call recordings
A contact centre wants agents to search 5 years of call recordings by topic. Recordings are WAV files on a NAS in the data centre, and customers' card numbers are sometimes spoken.
- DataSync copies the recordings to
s3://calls/raw/with a scheduled task for new files. - An S3 event starts a Transcribe job per file with PII redaction enabled, writing transcripts to
transcripts/. - A manifest records call ID, date, queue and agent for each transcript, used later as metadata filters.
- Transcripts are chunked, embedded and indexed in a knowledge base for semantic search.
Redacting at transcription time means card numbers never reach the vector index, which is simpler and safer than trying to remove them from embeddings later.
Where should labels and attributes for images and audio be kept?
Show answer
In manifest files, rather than in file names, which are hard to change and parse.
Exam Tips
Remember for the exam
- Keep labels and attributes in manifest files rather than in file names.
- Bulk transfer of on-premises files: DataSync; live camera video: Kinesis Video Streams.
- Speech to text: Transcribe; scanned documents: Textract; image labels: Rekognition.
- Redact PII as early as possible in the pipeline.
- Search images by text: multimodal embeddings.