Class RagStoreConfig.Builder

java.lang.Object
com.google.genai.gaos.models.interactions.RagStoreConfig.Builder
Enclosing class:
RagStoreConfig

public static final class RagStoreConfig.Builder extends Object
  • Method Details

    • ragResources

      public RagStoreConfig.Builder ragResources(@Nullable List<RagResource> ragResources)
      Optional. The representation of the rag source.
    • ragRetrievalConfig

      public RagStoreConfig.Builder ragRetrievalConfig(@Nullable RagRetrievalConfig ragRetrievalConfig)
      Specifies the context retrieval config.
    • similarityTopK

      @Deprecated public RagStoreConfig.Builder similarityTopK(@Nullable Integer 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 public RagStoreConfig.Builder vectorDistanceThreshold(@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.
    • build

      public RagStoreConfig build()