Package com.alibaba.cloud.ai.document
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.
Description Document with score.
- Since:
- 1.0.0-M2
- Author:
- yuanci.ytb
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentWithScore.Builderbuilder()booleanorg.springframework.ai.model.ResultMetadataorg.springframework.ai.document.DocumentgetScore()inthashCode()voidsetDocument(org.springframework.ai.document.Document document) voidsetMetadata(RerankResultMetadata metadata) voidtoString()
-
Constructor Details
-
DocumentWithScore
public DocumentWithScore()
-
-
Method Details
-
getScore
-
setScore
-
setDocument
public void setDocument(org.springframework.ai.document.Document document) -
setMetadata
-
builder
-
getOutput
public org.springframework.ai.document.Document getOutput()- Specified by:
getOutputin interfaceorg.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>
-
getMetadata
public org.springframework.ai.model.ResultMetadata getMetadata()- Specified by:
getMetadatain interfaceorg.springframework.ai.model.ModelResult<org.springframework.ai.document.Document>
-
equals
-
hashCode
public int hashCode() -
toString
-