Class RagStoreConfig

java.lang.Object
com.google.genai.gaos.models.interactions.RagStoreConfig

public class RagStoreConfig extends Object
RagStoreConfig

Use to specify configuration for RAG Store.

  • Constructor Details

    • RagStoreConfig

      public RagStoreConfig(@Nullable List<RagResource> ragResources, @Nullable RagRetrievalConfig ragRetrievalConfig, @Nullable Integer similarityTopK, @Nullable Double vectorDistanceThreshold)
    • RagStoreConfig

      public RagStoreConfig()
  • Method Details

    • ragResources

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

      public Optional<RagRetrievalConfig> ragRetrievalConfig()
      Specifies the context retrieval config.
    • similarityTopK

      @Deprecated public Optional<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 Optional<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.
    • builder

      public static RagStoreConfig.Builder builder()
    • withRagResources

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

      public RagStoreConfig withRagRetrievalConfig(@Nullable RagRetrievalConfig ragRetrievalConfig)
      Specifies the context retrieval config.
    • withSimilarityTopK

      @Deprecated public RagStoreConfig withSimilarityTopK(@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.
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object