Class SummaryMetadataEnricher
java.lang.Object
org.springframework.ai.transformer.SummaryMetadataEnricher
Title extractor with adjacent sharing that uses generative to extract
'section_summary', 'prev_section_summary', 'next_section_summary' metadata fields.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSummaryMetadataEnricher
(ChatModel chatModel, List<SummaryMetadataEnricher.SummaryType> summaryTypes) SummaryMetadataEnricher
(ChatModel chatModel, List<SummaryMetadataEnricher.SummaryType> summaryTypes, String summaryTemplate, MetadataMode metadataMode) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.document.DocumentTransformer
transform
-
Field Details
-
DEFAULT_SUMMARY_EXTRACT_TEMPLATE
- See Also:
-
-
Constructor Details
-
SummaryMetadataEnricher
public SummaryMetadataEnricher(ChatModel chatModel, List<SummaryMetadataEnricher.SummaryType> summaryTypes) -
SummaryMetadataEnricher
public SummaryMetadataEnricher(ChatModel chatModel, List<SummaryMetadataEnricher.SummaryType> summaryTypes, String summaryTemplate, MetadataMode metadataMode)
-
-
Method Details