ExitAmazon Comprehend and Amazon Bedrock: choosing text analysis or generation1 / 7
Explanation

Start with the output you need

How to distinguish requests suited to Comprehend's specialized analysis APIs from those suited to Bedrock's generative foundation models. · foundational

Amazon Comprehend provides specialized APIs for analyzing text. An API is an interface an application calls to request a defined task. For example, an application can ask Comprehend to detect sentiment or identify people and places mentioned in a review. The result describes the supplied text rather than composing a new message.

Amazon Bedrock provides access to foundation models, including generative models that can compose summaries, explanations, and replies from instructions. Start your choice with the required output: a supported analysis result points toward Comprehend; newly composed content points toward a suitable generative model through Bedrock.

Both use artificial intelligence. Machine learning is a subset of AI, and generative AI is a type of machine learning focused on creating content. The distinction here is not AI versus non-AI; it is specialized analysis versus generation.

Decision pointAmazon ComprehendAmazon Bedrock
Primary fit hereSpecialized text analysisGenerative text tasks
How you request workTask-specific APIInstructions to a model
Typical outputDetected entities or sentimentSummary or drafted reply