Interface KnowledgeBaseRetrievalResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<KnowledgeBaseRetrievalResult.Builder,
,KnowledgeBaseRetrievalResult> SdkBuilder<KnowledgeBaseRetrievalResult.Builder,
,KnowledgeBaseRetrievalResult> SdkPojo
- Enclosing class:
KnowledgeBaseRetrievalResult
public static interface KnowledgeBaseRetrievalResult.Builder
extends SdkPojo, CopyableBuilder<KnowledgeBaseRetrievalResult.Builder,KnowledgeBaseRetrievalResult>
-
Method Summary
Modifier and TypeMethodDescriptioncontent
(Consumer<RetrievalResultContent.Builder> content) Contains a chunk of text from a data source in the knowledge base.content
(RetrievalResultContent content) Contains a chunk of text from a data source in the knowledge base.location
(Consumer<RetrievalResultLocation.Builder> location) Contains information about the location of the data source.location
(RetrievalResultLocation location) Contains information about the location of the data source.Contains metadata attributes and their values for the file in the data source.The level of relevance of the result to the query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
content
Contains a chunk of text from a data source in the knowledge base.
- Parameters:
content
- Contains a chunk of text from a data source in the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
default KnowledgeBaseRetrievalResult.Builder content(Consumer<RetrievalResultContent.Builder> content) Contains a chunk of text from a data source in the knowledge base.
This is a convenience method that creates an instance of theRetrievalResultContent.Builder
avoiding the need to create one manually viaRetrievalResultContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(RetrievalResultContent)
.- Parameters:
content
- a consumer that will call methods onRetrievalResultContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
Contains information about the location of the data source.
- Parameters:
location
- Contains information about the location of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default KnowledgeBaseRetrievalResult.Builder location(Consumer<RetrievalResultLocation.Builder> location) Contains information about the location of the data source.
This is a convenience method that creates an instance of theRetrievalResultLocation.Builder
avoiding the need to create one manually viaRetrievalResultLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(RetrievalResultLocation)
.- Parameters:
location
- a consumer that will call methods onRetrievalResultLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.
- Parameters:
metadata
- Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
score
The level of relevance of the result to the query.
- Parameters:
score
- The level of relevance of the result to the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-