Class FileChunkService

java.lang.Object
com.bytedesk.kbase.llm_file.FileChunkService

@Service public class FileChunkService extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final UploadRestService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.springframework.ai.document.Document>
    https://docs.spring.io/spring-ai/reference/api/etl-pipeline.html
    List<org.springframework.ai.document.Document>
    readByTika(org.springframework.core.io.Resource resource)
     
    List<org.springframework.ai.document.Document>
    readJson(org.springframework.core.io.Resource resource)
     
    List<org.springframework.ai.document.Document>
    readMarkdown(org.springframework.core.io.Resource resource)
     
    List<org.springframework.ai.document.Document>
    readPdfPage(org.springframework.core.io.Resource resource)
     
    List<org.springframework.ai.document.Document>
    readPdfParagraph(org.springframework.core.io.Resource resource)
     
    List<org.springframework.ai.document.Document>
    readTxt(org.springframework.core.io.Resource resource)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • FileChunkService

      public FileChunkService()
  • Method Details

    • parseFileContent

      public List<org.springframework.ai.document.Document> parseFileContent(UploadEntity upload)
      https://docs.spring.io/spring-ai/reference/api/etl-pipeline.html
    • readPdfPage

      public List<org.springframework.ai.document.Document> readPdfPage(org.springframework.core.io.Resource resource)
    • readPdfParagraph

      public List<org.springframework.ai.document.Document> readPdfParagraph(org.springframework.core.io.Resource resource)
    • readJson

      public List<org.springframework.ai.document.Document> readJson(org.springframework.core.io.Resource resource)
    • readMarkdown

      public List<org.springframework.ai.document.Document> readMarkdown(org.springframework.core.io.Resource resource)
    • readTxt

      public List<org.springframework.ai.document.Document> readTxt(org.springframework.core.io.Resource resource)
    • readByTika

      public List<org.springframework.ai.document.Document> readByTika(org.springframework.core.io.Resource resource)