Package dev.langchain4j.data.text
Class TextFile.Builder
java.lang.Object
dev.langchain4j.data.text.TextFile.Builder
- Enclosing class:
TextFile
Builder for
TextFile
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbase64Data
(String base64Data) Set the base64 data of the text document.build()
Build theTextFile
.Set the mime type of the text document.Set the url of the text document.Set the url of the text document.
-
Constructor Details
-
Builder
public Builder()Create a newTextFile.Builder
.
-
-
Method Details
-
url
Set the url of the text document.- Parameters:
url
- the url of the text document.- Returns:
this
-
url
Set the url of the text document.- Parameters:
url
- the url of the text document.- Returns:
this
-
base64Data
Set the base64 data of the text document.- Parameters:
base64Data
- the base64 data of the text document.- Returns:
this
-
mimeType
Set the mime type of the text document.- Parameters:
mimeType
- the mime type of the text document.- Returns:
this
-
build
Build theTextFile
.- Returns:
- the
TextFile
.
-