Class TextReRankParam


@Deprecated public class TextReRankParam extends HalfDuplexServiceParam
Deprecated.
  • Constructor Details

  • Method Details

    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Overrides:
      getParameters in class HalfDuplexServiceParam
      Returns:
      The parameters
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • builder

      public static TextReRankParam.TextReRankParamBuilder<?,?> builder()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexServiceParam
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexServiceParam
    • getQuery

      public String getQuery()
      Deprecated.
      The query text for reranking. Maximum length is 4,000 tokens.
    • getDocuments

      public List<String> getDocuments()
      Deprecated.
      The list of candidate documents to be reranked. Maximum 500 documents.
    • getTopN

      public Integer getTopN()
      Deprecated.
      The number of top documents to return. If not specified, returns all candidate documents. If top_n is greater than the number of input documents, returns all documents.
    • getReturnDocuments

      public Boolean getReturnDocuments()
      Deprecated.
      Whether to return the original document text in the results. Default is false.
    • getInstruct

      public String getInstruct()
      Deprecated.
      The instruction for reranking.
    • setQuery

      public void setQuery(String query)
      Deprecated.
      The query text for reranking. Maximum length is 4,000 tokens.
    • setDocuments

      public void setDocuments(List<String> documents)
      Deprecated.
      The list of candidate documents to be reranked. Maximum 500 documents.
    • setTopN

      public void setTopN(Integer topN)
      Deprecated.
      The number of top documents to return. If not specified, returns all candidate documents. If top_n is greater than the number of input documents, returns all documents.
    • setReturnDocuments

      public void setReturnDocuments(Boolean returnDocuments)
      Deprecated.
      Whether to return the original document text in the results. Default is false.
    • setInstruct

      public void setInstruct(String instruct)
      Deprecated.
      The instruction for reranking.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase