public static class SummarizeTextDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SummarizeTextDetails.Builder |
additionalCommand(String additionalCommand)
A free-form instruction for modifying how the summaries get generated.
|
SummarizeTextDetails |
build() |
SummarizeTextDetails.Builder |
compartmentId(String compartmentId)
The OCID of compartment in which to call the Generative AI service to summarize text.
|
SummarizeTextDetails.Builder |
copy(SummarizeTextDetails model) |
SummarizeTextDetails.Builder |
extractiveness(SummarizeTextDetails.Extractiveness extractiveness)
Controls how close to the original text the summary is.
|
SummarizeTextDetails.Builder |
format(SummarizeTextDetails.Format format)
Indicates the style in which the summary will be delivered - in a free form paragraph or
in bullet points.
|
SummarizeTextDetails.Builder |
input(String input)
The input string to be summarized.
|
SummarizeTextDetails.Builder |
isEcho(Boolean isEcho)
Whether or not to include the original inputs in the response.
|
SummarizeTextDetails.Builder |
length(SummarizeTextDetails.Length length)
Indicates the approximate length of the summary.
|
SummarizeTextDetails.Builder |
servingMode(ServingMode servingMode) |
SummarizeTextDetails.Builder |
temperature(Double temperature)
A number that sets the randomness of the generated output.
|
public SummarizeTextDetails.Builder input(String input)
The input string to be summarized.
input
- the value to setpublic SummarizeTextDetails.Builder servingMode(ServingMode servingMode)
public SummarizeTextDetails.Builder compartmentId(String compartmentId)
The OCID of compartment in which to call the Generative AI service to summarize text.
compartmentId
- the value to setpublic SummarizeTextDetails.Builder isEcho(Boolean isEcho)
Whether or not to include the original inputs in the response.
isEcho
- the value to setpublic SummarizeTextDetails.Builder temperature(Double temperature)
A number that sets the randomness of the generated output. Lower temperatures mean less random generations.
Use lower numbers for tasks with a correct answer such as question answering or summarizing. High temperatures can generate hallucinations or factually incorrect information. Start with temperatures lower than 1.0, and increase the temperature for more creative outputs, as you regenerate the prompts to refine the outputs.
temperature
- the value to setpublic SummarizeTextDetails.Builder additionalCommand(String additionalCommand)
A free-form instruction for modifying how the summaries get generated. Should complete the sentence “Generate a summary _”. For example, “focusing on the next steps” or “written by Yoda”.
additionalCommand
- the value to setpublic SummarizeTextDetails.Builder length(SummarizeTextDetails.Length length)
Indicates the approximate length of the summary. If “AUTO” is selected, the best option will be picked based on the input text.
length
- the value to setpublic SummarizeTextDetails.Builder format(SummarizeTextDetails.Format format)
Indicates the style in which the summary will be delivered - in a free form paragraph or in bullet points. If “AUTO” is selected, the best option will be picked based on the input text.
format
- the value to setpublic SummarizeTextDetails.Builder extractiveness(SummarizeTextDetails.Extractiveness extractiveness)
Controls how close to the original text the summary is. High extractiveness summaries will lean towards reusing sentences verbatim, while low extractiveness summaries will tend to paraphrase more.
extractiveness
- the value to setpublic SummarizeTextDetails build()
public SummarizeTextDetails.Builder copy(SummarizeTextDetails model)
Copyright © 2016–2024. All rights reserved.