Record Class DashScopeApiSpec.RetrieverConfiguredTransformations.RetrieverComponent

java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.RetrieverConfiguredTransformations.RetrieverComponent
Enclosing class:
DashScopeApiSpec.RetrieverConfiguredTransformations

public static record DashScopeApiSpec.RetrieverConfiguredTransformations.RetrieverComponent(boolean enableRewrite, List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rewriteComponents, int sparseSimilarityTopK, int denseSimilarityTopK, boolean enableRerank, List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rerankComponents, float rerankMinScore, int rerankTopN, List<Map<String,Object>> searchFilters) extends Record
  • Constructor Details

    • RetrieverComponent

      public RetrieverComponent(boolean enableRewrite, List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rewriteComponents, int sparseSimilarityTopK, int denseSimilarityTopK, boolean enableRerank, List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rerankComponents, float rerankMinScore, int rerankTopN, List<Map<String,Object>> searchFilters)
      Creates an instance of a RetrieverComponent record class.
      Parameters:
      enableRewrite - the value for the enableRewrite record component
      rewriteComponents - the value for the rewriteComponents record component
      sparseSimilarityTopK - the value for the sparseSimilarityTopK record component
      denseSimilarityTopK - the value for the denseSimilarityTopK record component
      enableRerank - the value for the enableRerank record component
      rerankComponents - the value for the rerankComponents record component
      rerankMinScore - the value for the rerankMinScore record component
      rerankTopN - the value for the rerankTopN record component
      searchFilters - the value for the searchFilters record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enableRewrite

      public boolean enableRewrite()
      Returns the value of the enableRewrite record component.
      Returns:
      the value of the enableRewrite record component
    • rewriteComponents

      Returns the value of the rewriteComponents record component.
      Returns:
      the value of the rewriteComponents record component
    • sparseSimilarityTopK

      public int sparseSimilarityTopK()
      Returns the value of the sparseSimilarityTopK record component.
      Returns:
      the value of the sparseSimilarityTopK record component
    • denseSimilarityTopK

      public int denseSimilarityTopK()
      Returns the value of the denseSimilarityTopK record component.
      Returns:
      the value of the denseSimilarityTopK record component
    • enableRerank

      public boolean enableRerank()
      Returns the value of the enableRerank record component.
      Returns:
      the value of the enableRerank record component
    • rerankComponents

      Returns the value of the rerankComponents record component.
      Returns:
      the value of the rerankComponents record component
    • rerankMinScore

      public float rerankMinScore()
      Returns the value of the rerankMinScore record component.
      Returns:
      the value of the rerankMinScore record component
    • rerankTopN

      public int rerankTopN()
      Returns the value of the rerankTopN record component.
      Returns:
      the value of the rerankTopN record component
    • searchFilters

      public List<Map<String,Object>> searchFilters()
      Returns the value of the searchFilters record component.
      Returns:
      the value of the searchFilters record component