String resourceName
The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.
GeneratedResponsePart generatedResponsePart
Contains the generated response and metadata
List<E> retrievedReferences
Contains metadata about the sources cited for the generated response.
String resourceName
The name of the dependency that caused the issue, such as Amazon Bedrock, Lambda, or STS.
TextResponsePart textResponsePart
Contains metadata about a textual part of the generated response that is accompanied by a citation.
PromptTemplate promptTemplate
Contains the template for the prompt that's sent to the model for response generation.
String text
The text of the query made to the knowledge base.
KnowledgeBaseVectorSearchConfiguration vectorSearchConfiguration
Contains details about how the results from the vector search should be returned. For more information, see Query configurations.
RetrievalResultContent content
Contains a chunk of text from a data source in the knowledge base.
RetrievalResultLocation location
Contains information about the location of the data source.
Double score
The level of relevance of the result to the query.
GenerationConfiguration generationConfiguration
Contains configurations for response generation based on the knowwledge base query results.
String knowledgeBaseId
The unique identifier of the knowledge base that is queried and the foundation model used for generation.
String modelArn
The ARN of the foundation model used to generate a response.
KnowledgeBaseRetrievalConfiguration retrievalConfiguration
Contains configurations for how to retrieve and return the knowledge base query.
RetrievalFilter filter
Specifies the filters to use on the metadata in the knowledge base data sources before returning results. For more information, see Query configurations.
Integer numberOfResults
The number of source chunks to retrieve.
String overrideSearchType
By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless
vector store that contains a filterable text field, you can specify whether to query the knowledge base with a
HYBRID search using both vector embeddings and raw text, or SEMANTIC search using only
vector embeddings. For other vector store configurations, only SEMANTIC search is available. For
more information, see Test a knowledge base.
String textPromptTemplate
The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.
For more information, see the following resources:
String text
The cited text from the data source.
RetrievalResultS3Location s3Location
Contains the S3 location of the data source.
String type
The type of the location of the data source.
String uri
The S3 URI of the data source.
KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration
Contains details about the resource being queried.
String type
The type of resource that is queried by the request.
String text
The query made to the knowledge base.
String text
The response generated from querying the knowledge base.
RetrieveAndGenerateInput input
Contains the query to be made to the knowledge base.
RetrieveAndGenerateConfiguration retrieveAndGenerateConfiguration
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
RetrieveAndGenerateSessionConfiguration sessionConfiguration
Contains details about the session with the knowledge base.
String sessionId
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
List<E> citations
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
RetrieveAndGenerateOutput output
Contains the response generated from querying the knowledge base.
String sessionId
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
String kmsKeyArn
The ARN of the KMS key encrypting the session.
RetrievalResultContent content
Contains the cited text from the data source.
RetrievalResultLocation location
Contains information about the location of the data source.
String knowledgeBaseId
The unique identifier of the knowledge base to query.
String nextToken
If there are more results than can fit in the response, the response returns a nextToken. Use this
token in the nextToken field of another request to retrieve the next batch of results.
KnowledgeBaseRetrievalConfiguration retrievalConfiguration
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
KnowledgeBaseQuery retrievalQuery
Contains the query to send the knowledge base.
String nextToken
If there are more results than can fit in the response, the response returns a nextToken. Use this
token in the nextToken field of another request to retrieve the next batch of results.
List<E> retrievalResults
A list of results from querying the knowledge base.
Copyright © 2024. All rights reserved.