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 Summary
ConstructorsConstructorDescriptionRetrieverComponent(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 aRetrieverComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedenseSimilarityTopKrecord component.booleanReturns the value of theenableRerankrecord component.booleanReturns the value of theenableRewriterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thererankComponentsrecord component.floatReturns the value of thererankMinScorerecord component.intReturns the value of thererankTopNrecord component.Returns the value of therewriteComponentsrecord component.Returns the value of thesearchFiltersrecord component.intReturns the value of thesparseSimilarityTopKrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRetrieverComponentrecord class.- Parameters:
enableRewrite- the value for theenableRewriterecord componentrewriteComponents- the value for therewriteComponentsrecord componentsparseSimilarityTopK- the value for thesparseSimilarityTopKrecord componentdenseSimilarityTopK- the value for thedenseSimilarityTopKrecord componentenableRerank- the value for theenableRerankrecord componentrerankComponents- the value for thererankComponentsrecord componentrerankMinScore- the value for thererankMinScorerecord componentrerankTopN- the value for thererankTopNrecord componentsearchFilters- the value for thesearchFiltersrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
enableRewrite
public boolean enableRewrite()Returns the value of theenableRewriterecord component.- Returns:
- the value of the
enableRewriterecord component
-
rewriteComponents
public List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rewriteComponents()Returns the value of therewriteComponentsrecord component.- Returns:
- the value of the
rewriteComponentsrecord component
-
sparseSimilarityTopK
public int sparseSimilarityTopK()Returns the value of thesparseSimilarityTopKrecord component.- Returns:
- the value of the
sparseSimilarityTopKrecord component
-
denseSimilarityTopK
public int denseSimilarityTopK()Returns the value of thedenseSimilarityTopKrecord component.- Returns:
- the value of the
denseSimilarityTopKrecord component
-
enableRerank
public boolean enableRerank()Returns the value of theenableRerankrecord component.- Returns:
- the value of the
enableRerankrecord component
-
rerankComponents
public List<DashScopeApiSpec.RetrieverConfiguredTransformations.CommonModelComponent> rerankComponents()Returns the value of thererankComponentsrecord component.- Returns:
- the value of the
rerankComponentsrecord component
-
rerankMinScore
public float rerankMinScore()Returns the value of thererankMinScorerecord component.- Returns:
- the value of the
rerankMinScorerecord component
-
rerankTopN
public int rerankTopN()Returns the value of thererankTopNrecord component.- Returns:
- the value of the
rerankTopNrecord component
-
searchFilters
Returns the value of thesearchFiltersrecord component.- Returns:
- the value of the
searchFiltersrecord component
-