Uses of Interface
org.springframework.ai.document.ContentFormatter
Package
Description
-
Uses of ContentFormatter in org.springframework.ai.document
Modifier and TypeFieldDescriptionstatic final ContentFormatter
Document.DEFAULT_CONTENT_FORMATTER
Modifier and TypeMethodDescriptionDocument.getFormattedContent
(ContentFormatter formatter, MetadataMode metadataMode) Helper content extractor that uses and externalContentFormatter
.void
Document.setContentFormatter
(ContentFormatter contentFormatter) Replace the document'sContentFormatter
. -
Uses of ContentFormatter in org.springframework.ai.embedding
ModifierConstructorDescriptionTokenCountBatchingStrategy
(com.knuddels.jtokkit.api.EncodingType encodingType, int maxInputTokenCount, double reservePercentage, ContentFormatter contentFormatter, MetadataMode metadataMode) TokenCountBatchingStrategy
(TokenCountEstimator tokenCountEstimator, int maxInputTokenCount, double reservePercentage, ContentFormatter contentFormatter, MetadataMode metadataMode) Constructs a TokenCountBatchingStrategy with the specified parameters. -
Uses of ContentFormatter in org.springframework.ai.transformer
ModifierConstructorDescriptionContentFormatTransformer
(ContentFormatter contentFormatter) Creates a ContentFormatTransformer object with the given ContentFormatter.ContentFormatTransformer
(ContentFormatter contentFormatter, boolean disableTemplateRewrite) The ContentFormatTransformer class is responsible for processing a list of documents by applying a content formatter to each document.