Class RagStoreConfig
java.lang.Object
com.google.genai.gaos.models.interactions.RagStoreConfig
RagStoreConfig
Use to specify configuration for RAG Store.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRagStoreConfig(List<RagResource> ragResources, RagRetrievalConfig ragRetrievalConfig, Integer similarityTopK, Double vectorDistanceThreshold) -
Method Summary
Modifier and TypeMethodDescriptionstatic RagStoreConfig.Builderbuilder()booleaninthashCode()Optional.Specifies the context retrieval config.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.toString()Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withRagResources(List<RagResource> ragResources) Optional.withRagRetrievalConfig(RagRetrievalConfig ragRetrievalConfig) Specifies the context retrieval config.withSimilarityTopK(Integer similarityTopK) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withVectorDistanceThreshold(Double vectorDistanceThreshold) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.
-
Constructor Details
-
RagStoreConfig
public RagStoreConfig(@Nullable List<RagResource> ragResources, @Nullable RagRetrievalConfig ragRetrievalConfig, @Nullable Integer similarityTopK, @Nullable Double vectorDistanceThreshold) -
RagStoreConfig
public RagStoreConfig()
-
-
Method Details
-
ragResources
Optional. The representation of the rag source. -
ragRetrievalConfig
Specifies the context retrieval config. -
similarityTopK
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. Number of top k results to return from the selected corpora. -
vectorDistanceThreshold
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. Only return results with vector distance smaller than the threshold. -
builder
-
withRagResources
Optional. The representation of the rag source. -
withRagRetrievalConfig
Specifies the context retrieval config. -
withSimilarityTopK
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. Number of top k results to return from the selected corpora. -
withVectorDistanceThreshold
@Deprecated public RagStoreConfig withVectorDistanceThreshold(@Nullable Double vectorDistanceThreshold) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Optional. Only return results with vector distance smaller than the threshold. -
equals
-
hashCode
public int hashCode() -
toString
-