Uses of Interface
org.springframework.ai.document.ContentFormatter
Packages that use ContentFormatter
Package
Description
Provides the API for embedding observations.
-
Uses of ContentFormatter in org.springframework.ai.document
Classes in org.springframework.ai.document that implement ContentFormatterFields in org.springframework.ai.document declared as ContentFormatterModifier and TypeFieldDescriptionstatic final ContentFormatter
Document.DEFAULT_CONTENT_FORMATTER
Methods in org.springframework.ai.document that return ContentFormatterModifier and TypeMethodDescriptionDocument.getContentFormatter()
Deprecated.We are considering getting rid of this, please comment on https://github.com/spring-projects/spring-ai/issues/1782Methods in org.springframework.ai.document with parameters of type ContentFormatterModifier 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
Constructors in org.springframework.ai.embedding with parameters of type ContentFormatterModifierConstructorDescriptionTokenCountBatchingStrategy
(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
Constructors in org.springframework.ai.transformer with parameters of type ContentFormatterModifierConstructorDescriptionContentFormatTransformer
(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.