public static final class RagRetrievalConfig.Builder extends GeneratedMessageV3.Builder<RagRetrievalConfig.Builder> implements RagRetrievalConfigOrBuilder
Specifies the context retrieval config.
Protobuf type google.cloud.aiplatform.v1beta1.RagRetrievalConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RagRetrievalConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagRetrievalConfig build()
public RagRetrievalConfig buildPartial()
public RagRetrievalConfig.Builder clear()
Overrides
public RagRetrievalConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RagRetrievalConfig.Builder clearFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clearHybridSearch()
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RagRetrievalConfig.Builder clearRanking()
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clearTopK()
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder clone()
Overrides
public RagRetrievalConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public RagRetrievalConfig.Filter getFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Filter.Builder getFilterBuilder()
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder()
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.HybridSearch getHybridSearch()
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.HybridSearch.Builder getHybridSearchBuilder()
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.HybridSearchOrBuilder getHybridSearchOrBuilder()
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Ranking getRanking()
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Ranking.Builder getRankingBuilder()
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.RankingOrBuilder getRankingOrBuilder()
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The topK.
|
public boolean hasFilter()
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the filter field is set.
|
public boolean hasHybridSearch()
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the hybridSearch field is set.
|
public boolean hasRanking()
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the ranking field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RagRetrievalConfig.Builder mergeFilter(RagRetrievalConfig.Filter value)
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder mergeFrom(RagRetrievalConfig other)
public RagRetrievalConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RagRetrievalConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public RagRetrievalConfig.Builder mergeHybridSearch(RagRetrievalConfig.HybridSearch value)
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder mergeRanking(RagRetrievalConfig.Ranking value)
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public final RagRetrievalConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RagRetrievalConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter value)
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter.Builder builderForValue)
Optional. Config for filters.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setHybridSearch(RagRetrievalConfig.HybridSearch value)
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setHybridSearch(RagRetrievalConfig.HybridSearch.Builder builderForValue)
Optional. Config for Hybrid Search.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setRanking(RagRetrievalConfig.Ranking value)
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setRanking(RagRetrievalConfig.Ranking.Builder builderForValue)
Optional. Config for ranking and reranking.
.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public RagRetrievalConfig.Builder setTopK(int value)
Optional. The number of contexts to retrieve.
int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
int
The topK to set.
|
public final RagRetrievalConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides