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 point | Amazon Comprehend | Amazon Bedrock |
|---|---|---|
| Primary fit here | Specialized text analysis | Generative text tasks |
| How you request work | Task-specific API | Instructions to a model |
| Typical output | Detected entities or sentiment | Summary or drafted reply |