Package org.springframework.ai.document
Class Document
java.lang.Object
org.springframework.ai.document.Document
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFormattedContent(ContentFormatter formatter, MetadataMode metadataMode) Helper content extractor that uses and externalContentFormatter.getFormattedContent(MetadataMode metadataMode) getId()inthashCode()voidsetContentFormatter(ContentFormatter contentFormatter) Replace the document'sContentFormatter.voidsetEmbedding(List<Double> embedding) toString()
-
Field Details
-
DEFAULT_CONTENT_FORMATTER
-
-
Constructor Details
-
Document
-
Document
-
Document
-
-
Method Details
-
getId
-
getContent
-
getFormattedContent
-
getFormattedContent
-
getFormattedContent
Helper content extractor that uses and externalContentFormatter. -
setEmbedding
-
setContentFormatter
Replace the document'sContentFormatter.- Parameters:
contentFormatter- new formatter to use.
-
getMetadata
-
getEmbedding
-
getContentFormatter
-
hashCode
public int hashCode() -
equals
-
toString
-