Video and image search in Amazon Bedrock Knowledge Base using Marengo 3.0

Video and image search in Amazon Bedrock Knowledge Base using Marengo 3.0

Today we’re announcing the general availability of TwelveLabs Marengo Embed 3.0 as an embedding model in Amazon Bedrock Knowledge Bases.

Video and media assets remain largely unsearchable by meaning. Teams in media, sports analytics, education, security, and retail need to find specific moments in hours of footage using natural language. An example query is “show me the penalty kick in the second half”. Building semantic search over video today requires stitching together a complex pipeline of transcription services, frame extraction pipelines, embedding models, vector databases, and synchronization logic.

Amazon Bedrock Knowledge Bases is a fully managed Retrieval Augmented Generation (RAG) service that handles storage, ingestion, embedding, re-ranking, and retrieval. It supports video files (MP4, MOV), images (JPEG, PNG), and audio tracks, with native connectors for Amazon Simple Storage Service (Amazon S3), SharePoint, Confluence, and more.

Marengo Embed 3.0 is a multimodal embedding model that jointly encodes video, audio, images, and text into a compact, storage-efficient 512-dimensional vector space.

With Marengo Embed 3.0 now available as an embedding model option, natural language search through video, audio, and image content becomes a fully managed experience. Managed Knowledge Bases (Managed MKB) automatically generates multimodal embeddings, capturing visual, textual, speech, and audio signals into a unified vector representation.

Walkthrough

This walkthrough shows how to create a knowledge base (KB) powered by Marengo 3.0 using the Amazon Bedrock console. The scenario contains a 10-minute clip of the 2022 FIFA World Cup final.

We ingest the video and run natural language queries against it.

Prerequisites

  • An active AWS account. If you don’t have one, see Create an AWS Account.
  • Access to Amazon Bedrock with TwelveLabs Marengo Embed 3.0 enabled in a supported Region. For details, see Model access in the Amazon Bedrock documentation.
  • An Amazon S3 bucket to store your video and image files.
  • AWS Identity and Access Management (IAM) permissions for Amazon Bedrock and Amazon S3.

1. Prepare your media assets

First, upload video files to an Amazon S3 bucket. There’s no pre-processing required as Managed MKB handles segmentation, frame sampling, and transcription internally.

Amazon S3 bucket containing the uploaded soccer video file

Figure 1: Amazon S3 bucket containing the uploaded soccer video file for knowledge base ingestion

2. Create a managed knowledge base

In the Amazon Bedrock console, navigate to Knowledge Bases and choose Create Managed KB.

Amazon Bedrock Knowledge Bases console with the Create managed KB button

Figure 2: Amazon Bedrock Knowledge Bases console with the Create managed KB button

Expand the Additional Configuration pane and select Amazon Bedrock embeddings model for Embeddings model. Amazon Titan Text is selected by default. Choose the pen icon to edit the model choice.

Knowledge base creation form with name, service role, and embeddings model fields

Figure 3: Knowledge base creation form showing the KB name, service role, and embeddings model configuration

Select TwelveLabs/Marengo Embed 3.0 as shown in the following figure.

Model selection dialog with TwelveLabs Marengo Embed 3.0 chosen as the embedding model

Figure 4: Model selection dialog with TwelveLabs Marengo Embed 3.0 selected as the embedding model

Next, expand the Data source pane, select Amazon S3 as Data source type, and configure the S3 URI of the bucket containing your video assets.

Data source pane with Amazon S3 selected and the S3 URI entered

Figure 5: Data source configuration pane with Amazon S3 selected and the S3 URI specified

In the Audio/video segmentation configuration section under Advanced configurations, you can configure audio and video segmentation durations. The default is 4 seconds for both modalities.

Advanced configuration pane showing audio and video segmentation settings

Figure 6: Advanced configuration options including audio and video segmentation settings

Leave the advanced parameters unchanged and choose Create Knowledge Base at the bottom right of the page.

3. Sync and ingest your data

After the KB has been created, choose Sync to start ingestion. Managed MKB automatically extracts frames, transcribes audio, generates Marengo Embed 3.0 embeddings for each segment, and writes vectors to the index.

Sync history panel showing a completed data ingestion job

Figure 7: Sync history panel showing a completed data ingestion job

4. Run a semantic search

You can test your KB without leaving the console using the Test feature. Configure how many source chunks to retrieve, apply metadata filters, and run a query such as “show me the penalty kicks from this soccer match.”

The response returns ranked results with metadata including chunk start time, chunk end time, source URI, and embedding type, so you can extract the relevant sections as needed.

In this example, the top results identify moments where penalty kicks were attempted.

Knowledge base test panel showing ranked semantic search results and video playback

Figure 8: Knowledge base test interface showing semantic search results with video playback and source chunk timeline

5. Clean up

To clean up your resources, complete the following steps:

  1. On the Amazon Bedrock console, choose Knowledge Bases.
  2. Select your knowledge base and note both the IAM service role name and the Amazon Resource Name (ARN) of the S3 Vector index.
  3. Choose Delete and confirm.
  4. On the IAM console, find the role created earlier during knowledge base creation.
  5. Select and delete the role.
  6. On the Amazon S3 console, find your S3 bucket.
  7. Select and delete the files that you uploaded for this tutorial.

Integrate with your application

You can use the Amazon Bedrock Retrieve API to power downstream applications. Copy the invocation code from the Details page as a starting point.

Python code example using the Amazon Bedrock Retrieve API to query the knowledge base

Figure 9: Python code example using the Amazon Bedrock Retrieve API to query the knowledge base

The following architecture shows how multimodal content flows from Amazon S3 through Managed Knowledge Bases with Marengo 3.0 for embedding and indexing. Downstream, applications query the knowledge base through the Boto SDK Retrieve API or as an Amazon Bedrock Gateway target in Amazon Bedrock AgentCore.

Architecture diagram of multimodal content flowing from Amazon S3 through Managed Knowledge Bases with Marengo 3.0 to downstream applications

Figure 10: Architecture diagram showing the multimodal content flow from Amazon S3 through Managed Knowledge Bases with Marengo 3.0 to downstream applications

Conclusion

With the general availability of Marengo 3.0 in Amazon Bedrock Knowledge Bases, you can now unlock the full value of your video, audio, and image assets through natural language search, without building or managing complex infrastructure. Point your data source, sync, and search.

The business impact spans industries:

  • Sports analytics: Find specific plays, formations, or player actions across entire seasons of footage.
  • Media and entertainment: Media asset management, semantic search through media archive or streaming service content.
  • Security and safety: Search security camera footage for specific incidents or activities.
  • Education and training: Locate lecture segments by concept, not only keywords.
  • Retail: Search product demo videos for feature demonstrations.

Availability and pricing

Managed Knowledge Bases for Amazon Bedrock with Marengo Embed 3.0 is available in the US East (N. Virginia) AWS Region (us-east-1) and the US West (N. California) Region (us-west-1). For a complete list of supported models and Regions, see Supported models by AWS Region in Amazon Bedrock.

With Managed Knowledge Bases for Amazon Bedrock, you pay only for what you store and retrieve. Embeddings generation with Marengo Embed 3.0 is charged at the standard Amazon Bedrock model invocation rate.

For more information, see the pricing documentation page.

Next steps

Get started with fully managed multimodal retrieval:

  1. Explore the documentation: Review the Amazon Bedrock Knowledge Bases documentation and Build a managed knowledge base for additional technical details.
  2. Experiment with code examples: Check out the Amazon Bedrock samples repository for hands-on notebooks demonstrating multimodal retrieval.
  3. Learn more about Marengo Embed 3.0: Check out Marengo 3.0 documentation for deeper technical insights.

About the authors

Eric Kim

Eric Kim

Eric is a Staff Product Manager leading Marengo and Search at TwelveLabs, where he shapes frontier model research and builds solutions for multimodal search and video understanding. He works with researchers, engineers, and customers to turn advances in AI into products that help humans make sense of video collections at scale.

Narcisse Zekpa

Narcisse Zekpa

Narcisse is a Sr. Solutions Architect based in Boston. He helps customers in the Northeast U.S. accelerate their business transformation through innovative, and scalable solutions, on the AWS Cloud. He is passionate about enabling organizations to transform their business, using advanced analytics and AI. When Narcisse is not building, he enjoys spending time with his family, traveling and road racing.

Amit Choudhary

Amit Choudhary

Amit is a Principal Product Manager at AWS, where he leads the product strategy for knowledge bases for Amazon Bedrock and Amazon Quick. He is passionate about making multimodal retrieval-augmented generation (RAG) accessible, secure, and production-ready for enterprise customers

Adam Stanley

Adam Stanley

Adam is an AWS Solution Architect based in Seattle. With a background in statistics and machine learning he covers most areas of machine learning in his work with customers, with a recent focus specifically on AI Accelerator hardware such as GPUs or AWS Trainium.

​ 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top