Record Class DashScopeApiSpec.DocumentRetrieveRequest
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DocumentRetrieveRequest
- Enclosing class:
- DashScopeApiSpec
public static record DashScopeApiSpec.DocumentRetrieveRequest(String query, int denseSimilarityTopK, int sparseSimilarityTopK, boolean enableRewrite, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rewrite, boolean enableReranking, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rerank, float rerankMinScore, int rerankTopN, List<Map<String,Object>> searchFilters)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDocumentRetrieveRequest(String query, int denseSimilarityTopK, int sparseSimilarityTopK, boolean enableRewrite, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rewrite, boolean enableReranking, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rerank, float rerankMinScore, int rerankTopN, List<Map<String, Object>> searchFilters) Creates an instance of aDocumentRetrieveRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedenseSimilarityTopKrecord component.booleanReturns the value of theenableRerankingrecord 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.query()Returns the value of thequeryrecord component.rerank()Returns the value of thererankrecord component.floatReturns the value of thererankMinScorerecord component.intReturns the value of thererankTopNrecord component.rewrite()Returns the value of therewriterecord 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
-
DocumentRetrieveRequest
public DocumentRetrieveRequest(String query, int denseSimilarityTopK, int sparseSimilarityTopK, boolean enableRewrite, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rewrite, boolean enableReranking, List<DashScopeApiSpec.DocumentRetrieveRequest.DocumentRetrieveModelConfig> rerank, float rerankMinScore, int rerankTopN, List<Map<String, Object>> searchFilters) Creates an instance of aDocumentRetrieveRequestrecord class.- Parameters:
query- the value for thequeryrecord componentdenseSimilarityTopK- the value for thedenseSimilarityTopKrecord componentsparseSimilarityTopK- the value for thesparseSimilarityTopKrecord componentenableRewrite- the value for theenableRewriterecord componentrewrite- the value for therewriterecord componentenableReranking- the value for theenableRerankingrecord componentrerank- the value for thererankrecord 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 '=='. -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
denseSimilarityTopK
public int denseSimilarityTopK()Returns the value of thedenseSimilarityTopKrecord component.- Returns:
- the value of the
denseSimilarityTopKrecord component
-
sparseSimilarityTopK
public int sparseSimilarityTopK()Returns the value of thesparseSimilarityTopKrecord component.- Returns:
- the value of the
sparseSimilarityTopKrecord component
-
enableRewrite
public boolean enableRewrite()Returns the value of theenableRewriterecord component.- Returns:
- the value of the
enableRewriterecord component
-
rewrite
Returns the value of therewriterecord component.- Returns:
- the value of the
rewriterecord component
-
enableReranking
public boolean enableReranking()Returns the value of theenableRerankingrecord component.- Returns:
- the value of the
enableRerankingrecord component
-
rerank
Returns the value of thererankrecord component.- Returns:
- the value of the
rerankrecord 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
-