public static class SummarizeArgs.Builder extends Object
SummarizeArgs.
As a final step the build() method needs to be executed to create the final
SortByArgs instance.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SummarizeArgs |
build()
Build the
SummarizeArgs. |
SummarizeArgs.Builder |
field(String field)
Add a field to summarize.
|
SummarizeArgs.Builder |
fragments(long frags)
Set the number of fragments to be returned.
|
SummarizeArgs.Builder |
len(long len)
Set the number of context words each fragment should contain.
|
SummarizeArgs.Builder |
separator(String separator)
The string used to divide individual summary snippets.
|
public SummarizeArgs.Builder field(String field)
field - the field to summarizeSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder fragments(long frags)
frags - the number of fragments to returnSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder len(long len)
len - the length of the fragmentsSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs.Builder separator(String separator)
... which is common among search
engines, but you may override this with any other string if you desire to programmatically divide the snippets later
on. You may also use a newline sequence, as newlines are stripped from the result body during processing.separator - the separator between fragmentsSummarizeArgs.Builder for the purpose of method chainingpublic SummarizeArgs build()
SummarizeArgs.SummarizeArgsCopyright © 2026 lettuce.io. All rights reserved.