Interface EvaluationInferenceConfig.Builder

    • Method Detail

      • ragConfigs

        EvaluationInferenceConfig.Builder ragConfigs​(Collection<RAGConfig> ragConfigs)

        Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.

        Parameters:
        ragConfigs - Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ragConfigs

        EvaluationInferenceConfig.Builder ragConfigs​(RAGConfig... ragConfigs)

        Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.

        Parameters:
        ragConfigs - Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ragConfigs

        EvaluationInferenceConfig.Builder ragConfigs​(Consumer<RAGConfig.Builder>... ragConfigs)

        Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.

        This is a convenience method that creates an instance of the RAGConfig.Builder avoiding the need to create one manually via RAGConfig.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #ragConfigs(List).

        Parameters:
        ragConfigs - a consumer that will call methods on RAGConfig.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #ragConfigs(java.util.Collection)