Class DocumentWithScore

java.lang.Object
com.alibaba.cloud.ai.document.DocumentWithScore
All Implemented Interfaces:
org.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>

public class DocumentWithScore extends Object implements org.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>
Title Document with score.
Description Document with score.
Since:
1.0.0-M2
Author:
yuanci.ytb
  • Constructor Details

    • DocumentWithScore

      public DocumentWithScore()
  • Method Details

    • getScore

      public Double getScore()
    • setScore

      public void setScore(Double score)
    • setDocument

      public void setDocument(org.springframework.ai.document.Document document)
    • setMetadata

      public void setMetadata(RerankResultMetadata metadata)
    • builder

      public static DocumentWithScore.Builder builder()
    • getOutput

      public org.springframework.ai.document.Document getOutput()
      Specified by:
      getOutput in interface org.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>
    • getMetadata

      public org.springframework.ai.model.ResultMetadata getMetadata()
      Specified by:
      getMetadata in interface org.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object