Class FileGetRequest.Builder
- java.lang.Object
-
- ai.extend.resources.file.requests.FileGetRequest.Builder
-
- Enclosing class:
- FileGetRequest
public static final class FileGetRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileGetRequestbuild()FileGetRequest.Builderfrom(FileGetRequest other)FileGetRequest.Builderhtml(java.lang.Boolean html)FileGetRequest.Builderhtml(java.util.Optional<java.lang.Boolean> html)If set to true, the html content of the file will be included in the response.FileGetRequest.Buildermarkdown(java.lang.Boolean markdown)FileGetRequest.Buildermarkdown(java.util.Optional<java.lang.Boolean> markdown)If set to true, the markdown content of the file will be included in the response.FileGetRequest.BuilderrawText(java.lang.Boolean rawText)FileGetRequest.BuilderrawText(java.util.Optional<java.lang.Boolean> rawText)If set to true, the raw text content of the file will be included in the response.
-
-
-
Method Detail
-
from
public FileGetRequest.Builder from(FileGetRequest other)
-
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.
-
rawText
public FileGetRequest.Builder rawText(java.lang.Boolean rawText)
-
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.
-
markdown
public FileGetRequest.Builder markdown(java.lang.Boolean markdown)
-
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.
-
html
public FileGetRequest.Builder html(java.lang.Boolean html)
-
build
public FileGetRequest build()
-
-