Class FileGetRequest.Builder

  • Enclosing class:
    FileGetRequest

    public static final class FileGetRequest.Builder
    extends java.lang.Object
    • Method Detail

      • rawText

        public FileGetRequest.Builder rawText​(java.util.Optional<java.lang.Boolean> rawText)

        If set to true, the raw text content of the file will be included in the response. This is useful for indexing text-based files like PDFs, Word Documents, etc.

      • markdown

        public FileGetRequest.Builder markdown​(java.util.Optional<java.lang.Boolean> markdown)

        If set to true, the markdown content of the file will be included in the response. This is useful for indexing very clean content into RAG pipelines for files like PDFs, Word Documents, etc.

        Only available for files with a type of PDF, IMG, or .doc/.docx files that were auto-converted to PDFs.

      • html

        public FileGetRequest.Builder html​(java.util.Optional<java.lang.Boolean> html)

        If set to true, the html content of the file will be included in the response. This is useful for indexing html content into RAG pipelines.

        Only available for files with a type of DOCX.