amazon-bedrock-samples

aws-samplesMIT-0活跃维护

提供 Amazon Bedrock 上各类基础模型的入门示例代码,涵盖嵌入、知识库和 RAG 等场景,方便开发者快速上手生成式 AI 应用开发。

This repository contains examples for customers to get started using the Amazon Bedrock Service. This contains examples for all available foundational models

暂无版本1,533star +1 / 7 天751fork同步于 2026-11-10 11:47 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/aws-samples/amazon-bedrock-samples.git
硬件要求按 README 说明

README 未说明,示例依赖云端 Amazon Bedrock 服务,本地仅需能运行 notebook 的环境

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

亚马逊官方的 Amazon Bedrock 示例合集,帮你快速上手各类基础模型和生成式 AI 场景

提供 Amazon Bedrock 上各类基础模型的入门示例代码,涵盖嵌入、知识库和 RAG 等场景,方便开发者快速上手生成式 AI 应用开发。

核心能力

  • 覆盖 Agents、RAG、多模态、Embeddings 等场景示例
  • 提供提示词工程与负责任 AI 的实践指南
  • 含自定义模型导入与 POC 到生产化的路径
  • 配套 Workshop 与可观测性、评估示例

容易踩的坑

需先开通 Amazon Bedrock 服务访问权限;执行身份需具备 bedrock:* 的 IAM 权限,SageMaker 执行角色与控制台用户权限相互独立;各示例需进入对应子目录按其 README 操作

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Amazon Bedrock Samples

    To leverage this repository please use our website powered by this GitHub: Website

    This repository contains pre-built examples to help customers get started with the Amazon Bedrock service.

    Contents

    Getting Started

    To get started with the code examples, ensure you have access to Amazon Bedrock. Then clone this repo and navigate to one of the folders above. Detailed instructions are provided in each folder's README.

    Enable AWS IAM permissions for Bedrock

    The AWS identity you assume from your environment (which is the Studio/notebook Execution Role from SageMaker, or could be a role or IAM User for self-managed notebooks or other use-cases), must have sufficient AWS IAM permissions to call the Amazon Bedrock service.

    To grant Bedrock access to your identity, you can:

    • Open the AWS IAM Console
    • Find your Role (if using SageMaker or otherwise assuming an IAM Role), or else User
    • Select Add Permissions > Create Inline Policy to attach new inline permissions, open the JSON editor and paste in the below example policy:
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "BedrockFullAccess",
                "Effect": "Allow",
                "Action": ["bedrock:*"],
                "Resource": "*"
            }
        ]
    }
    

    ⚠️ Note 1: With Amazon SageMaker, your notebook execution role will typically be separate from the user or role that you log in to the AWS Console with. If you'd like to explore the AWS Console for Amazon Bedrock, you'll need to grant permissions to your Console user/role too.

    ⚠️ Note 2: For top level folder changes, please reach out to the GitHub mainterners.

    For more information on the fine-grained action and resource permissions in Bedrock, check out the Bedrock Developer Guide.

    Contributing

    We welcome community contributions! Please see CONTRIBUTING.md for guidelines.

    Security

    See CONTRIBUTING for more information.

    License

    This library is licensed under the MIT-0 License. See the LICENSE file.