All services

Machine Learning

Amazon Bedrock

Foundation models from leading providers via one API.

Official docs

Overview

Bedrock offers Claude, Llama, Mistral, Titan, Cohere and others as a managed API, with Agents, Knowledge Bases (RAG) and Guardrails.

When to use it

  • GenAI apps without managing GPUs
  • RAG over private docs
  • Agents calling tools

Setup

  1. Request model access in the console.
  2. Use `bedrock-runtime` SDK with model IDs (e.g. anthropic.claude-3-5-sonnet).
  3. Create Knowledge Base from S3 docs.

How to use

Invoke
aws bedrock-runtime invoke-model --model-id anthropic.claude-3-5-sonnet-20240620-v1:0 --body fileb://prompt.json out.json

QA use cases

  • Auto-generate test data and edge-case scenarios using LLMs; verify Guardrails block prompt-injection.