Interface CohereScoringModelConfig


public interface CohereScoringModelConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Using the fault tolerance mechanisms built in Langchain4j is not recommended.
    Reranking model to use.
    Timeout for Cohere calls
  • Method Details

    • modelName

      @WithDefault("rerank-multilingual-v2.0") String modelName()
      Reranking model to use. The current list of supported models can be found in the Cohere docs
    • timeout

      @WithDefault("30s") Duration timeout()
      Timeout for Cohere calls
    • maxRetries

      @WithDefault("1") Integer maxRetries()
      Deprecated.
      Using the fault tolerance mechanisms built in Langchain4j is not recommended. If possible, use MicroProfile Fault Tolerance instead.
      The maximum number of times to retry. 1 means exactly one attempt, with retrying disabled.