Home icon

Amazon Bedrock Knowledge Bases now supports custom prompts for the RetrieveAndGenerate API and configuration of the maximum number of retrieved results

Machine Learning Blog



This article discusses two new features added to Knowledge Bases for Amazon Bedrock's RetrieveAndGenerate API: the ability to configure the maximum number of results retrieved from the vector store, and the ability to create custom prompts using a knowledge base prompt template.

Specifically, the article covers:

  • Overview and benefits of the new features
  • How to configure the maximum number of results using the AWS Management Console and SDK
  • How to customize the knowledge base prompt template using the AWS Management Console and SDK
  • Examples demonstrating the impact of these features on improving response accuracy and customization
  • Conclusion highlighting the increased flexibility and control enabled by these enhancements


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Dec 2
2024
Amazon Bedrock Knowledge Bases now supports streaming responses with RetrieveAndGenerateStream API
Jul 10
2024
Knowledge Bases for Amazon Bedrock now supports additional data sources (preview)
Jul 10
2024
Knowledge Bases for Amazon Bedrock now supports additional data connectors (in preview)
Dec 2
2024
Amazon Bedrock Knowledge Bases now provides auto-generated query filters for improved retrieval

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.