hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

[Enhancement]: Update `aws_bedrockagent_data_source` to support advanced RAG capabilities. #38670

Closed patrickgreenwell closed 1 week ago

patrickgreenwell commented 1 month ago

Description

Knowledge Bases for Amazon Bedrock now supports advanced RAG capabilities

35543 #36783

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_bedrockagent_data_source" "semantic_bedrock_data_source" {
  knowledge_base_id    = "ABCDEFGY"
  name                 = "semantic_data_source"
  data_deletion_policy = "DELETE"
  vector_ingestion_configuration {
    chunking_configuration {
      chunking_strategy = "SEMANTIC"
      #Potential expected config follows.
      sematic_chunking_configuration = {
        breakpoint_percentile_threshold = 95
        buffer_size = 0
        max_tokens = 512
      }
    }
    parsing_configuration = {
      bedrock_foundation_model_configuration = {
        model_arn = "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0"
      }
      parsing_strategy = "BEDROCK_FOUNDATION_MODEL"
    }
  }
  data_source_configuration {
    type = "S3"
    s3_configuration {
      bucket_arn         = "arn:aws:s3:::example-bucket"
      inclusion_prefixes = ["prefix/"]
    }
  }
}

References

35543

36783

https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_VectorIngestionConfiguration.html

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 week ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 1 week ago

This functionality has been released in v5.66.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!