@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KnowledgeBaseVectorSearchConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Configurations for how to carry out the search.
| Constructor and Description | 
|---|
KnowledgeBaseVectorSearchConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
KnowledgeBaseVectorSearchConfiguration | 
clone()  | 
boolean | 
equals(Object obj)  | 
Integer | 
getNumberOfResults()
 The number of results to return. 
 | 
String | 
getOverrideSearchType()
 By default, Amazon Bedrock decides a search strategy for you. 
 | 
int | 
hashCode()  | 
void | 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given  
ProtocolMarshaller. | 
void | 
setNumberOfResults(Integer numberOfResults)
 The number of results to return. 
 | 
void | 
setOverrideSearchType(String overrideSearchType)
 By default, Amazon Bedrock decides a search strategy for you. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
KnowledgeBaseVectorSearchConfiguration | 
withNumberOfResults(Integer numberOfResults)
 The number of results to return. 
 | 
KnowledgeBaseVectorSearchConfiguration | 
withOverrideSearchType(SearchType overrideSearchType)
 By default, Amazon Bedrock decides a search strategy for you. 
 | 
KnowledgeBaseVectorSearchConfiguration | 
withOverrideSearchType(String overrideSearchType)
 By default, Amazon Bedrock decides a search strategy for you. 
 | 
public KnowledgeBaseVectorSearchConfiguration()
public void setNumberOfResults(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.
 
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.
        
public Integer getNumberOfResults()
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.
 
         The numberOfResults field is currently unsupported for RetrieveAndGenerate.
         Don't include it in this field if you are sending a RetrieveAndGenerate request.
         
public KnowledgeBaseVectorSearchConfiguration withNumberOfResults(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.
 
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.
        
public void setOverrideSearchType(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.
 
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.SearchTypepublic String getOverrideSearchType()
 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.
 
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.SearchTypepublic KnowledgeBaseVectorSearchConfiguration withOverrideSearchType(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.
 
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.SearchTypepublic KnowledgeBaseVectorSearchConfiguration withOverrideSearchType(SearchType 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.
 
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.SearchTypepublic String toString()
toString in class ObjectObject.toString()public KnowledgeBaseVectorSearchConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.