Skip to content

Commit

Permalink
feat(client-bedrock-agent-runtime): This release adds support to cust…
Browse files Browse the repository at this point in the history
…omize prompts sent through the RetrieveAndGenerate API in Agents for Amazon Bedrock.
  • Loading branch information
awstools committed Mar 26, 2024
1 parent 5f6803a commit 05e69da
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateRes

/**
* <p>Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.</p>
* <note>
* <p>The <code>numberOfResults</code> field is currently unsupported for <code>RetrieveAndGenerate</code>. Don't include it in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_KnowledgeBaseVectorSearchConfiguration.html">vectorSearchConfiguration</a> object.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand All @@ -62,6 +59,11 @@ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateRes
* overrideSearchType: "HYBRID" || "SEMANTIC",
* },
* },
* generationConfiguration: { // GenerationConfiguration
* promptTemplate: { // PromptTemplate
* textPromptTemplate: "STRING_VALUE",
* },
* },
* },
* },
* sessionConfiguration: { // RetrieveAndGenerateSessionConfiguration
Expand Down
Loading

0 comments on commit 05e69da

Please sign in to comment.