Machine Learning
Amazon Bedrock
Foundation models from leading providers via one API.
Official docsOverview
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
- Request model access in the console.
- Use `bedrock-runtime` SDK with model IDs (e.g. anthropic.claude-3-5-sonnet).
- 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.jsonQA use cases
- Auto-generate test data and edge-case scenarios using LLMs; verify Guardrails block prompt-injection.
