Class RerankRequest

java.lang.Object
com.alibaba.cloud.ai.model.RerankRequest
All Implemented Interfaces:
org.springframework.ai.model.ModelRequest<List<org.springframework.ai.document.Document>>

public class RerankRequest extends Object implements org.springframework.ai.model.ModelRequest<List<org.springframework.ai.document.Document>>
Title rerank request.
Description rerank request.
Since:
1.0.0-M2
Author:
yuanci.ytb
  • Constructor Details

    • RerankRequest

      public RerankRequest(String query, List<org.springframework.ai.document.Document> documents)
    • RerankRequest

      public RerankRequest(String query, List<org.springframework.ai.document.Document> documents, RerankOptions options)
  • Method Details

    • getInstructions

      public List<org.springframework.ai.document.Document> getInstructions()
      Specified by:
      getInstructions in interface org.springframework.ai.model.ModelRequest<List<org.springframework.ai.document.Document>>
    • getOptions

      public RerankOptions getOptions()
      Specified by:
      getOptions in interface org.springframework.ai.model.ModelRequest<List<org.springframework.ai.document.Document>>
    • getQuery

      public String getQuery()