aws-sdk-java-v2-bedrock

仓库创建 2025年10月21日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

适合在 Java 后端中集成生成式模型与 RAG,含流式与容错示例。

▸ 风险提示

需要 AWS 凭证并可能产生模型调用费用。

这个 Skill 做什么

使用 AWS SDK for Java 2.x 调用 Amazon Bedrock 的基础模型并处理流式与嵌入。

帮你用 AWS SDK for Java v2 调用 Amazon Bedrock 的基础模型(如 Claude、Llama、Titan):做文本/图像生成、流式响应处理和创建 embeddings 用于 RAG。适合把生成式 AI 接入 Java 或 Spring 服务、需要实时流式回复或做向量检索的场景。特别关注流式处理、错误恢复和指数退避,利于在生产环境下更稳定地使用 Bedrock。

▸ 展开 SKILL.md 英文原文

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.

开发编程Amazon BedrockJava生成式 AI通用
311
Stars
37
Forks
40
仓库内 Skill
+10
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/aws-sdk-java-v2-bedrock/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/aws-sdk-java-v2-bedrock/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 genera
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有