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.
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.
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.
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.
Integer numberOfResults
The number of results to return.
The numberOfResults field is currently unsupported for RetrieveAndGenerate. Don't
include it in this field if you are sending a RetrieveAndGenerate request.
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 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 made to the knowledge base.
RetrieveAndGenerateConfiguration retrieveAndGenerateConfiguration
Contains details about the resource being queried and the foundation model used for generation.
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 details about how the results should be returned.
KnowledgeBaseQuery retrievalQuery
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.