Class AbstractMetadataFeatureExtractor

java.lang.Object
org.springframework.ai.loader.extractor.AbstractMetadataFeatureExtractor
All Implemented Interfaces:
Function<List<Document>,List<Document>>, DocumentTransformer

public abstract class AbstractMetadataFeatureExtractor extends Object implements DocumentTransformer
Author:
Christian Tzolov
  • Constructor Details

    • AbstractMetadataFeatureExtractor

      public AbstractMetadataFeatureExtractor()
  • Method Details

    • apply

      public List<Document> apply(List<Document> documents)
      Specified by:
      apply in interface Function<List<Document>,List<Document>>
    • extract

      public abstract List<Map<String,Object>> extract(List<Document> documents)
      Extracts metadata for a list of documents, returning a list of metadata dictionaries corresponding to each document.
      Parameters:
      documents - Documents to extract metadata from.
      Returns:
      List of metadata dictionaries corresponding to each document