aws-sdk-java-v2-bedrock

Featured

Provides Amazon Bedrock patterns using AWS SDK for Java 2.x. Invokes foundation models (Claude, Llama, Titan), generates text and images, creates embeddings for RAG, streams real-time responses, and configures Spring Boot integration. Use when asking about Bedrock integration, Java SDK for AI models, AWS generative AI, Claude/Llama invocation, embeddings for RAG, or Spring Boot AI setup.

AI & Automation 330 stars 39 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# AWS SDK for Java 2.x - Amazon Bedrock ## Overview Invokes foundation models through AWS SDK for Java 2.x. Configures clients, builds model-specific JSON payloads, handles streaming responses with error recovery, creates embeddings for RAG, integrates generative AI into Spring Boot applications, and implements exponential backoff for resilience. ## When to Use - Invoke Claude, Llama, Titan, or Stable Diffusion for text/image generation - Configure BedrockClient and BedrockRuntimeClient instances - Build and parse model-specific payloads (Claude, Titan, Llama formats) - Stream real-time AI responses with async handlers and error recovery - Create embeddings for retrieval-augmented generation - Integrate generative AI into Spring Boot microservices - Handle throttling with exponential backoff retry logic ## Quick Start ### Dependencies ```xml <!-- Bedrock (model management) --> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bedrock</artifactId> </dependency> <!-- Bedrock Runtime (model invocation) --> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bedrockruntime</artifactId> </dependency> <!-- For JSON processing --> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20231013</version> </dependency> ``` ### Client Setup ```java import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.bedrock.BedrockClient; import software.amazon.awssdk.service...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
10 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category