Package com.openai.models
Class FileChunkingStrategyParam
-
- All Implemented Interfaces:
public final class FileChunkingStrategyParam
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
FileChunkingStrategyParam.Visitor
public final class
FileChunkingStrategyParam.Deserializer
public final class
FileChunkingStrategyParam.Serializer
-
Method Summary
-
-
Method Detail
-
autoFileChunkingStrategyParam
final Optional<AutoFileChunkingStrategyParam> autoFileChunkingStrategyParam()
The default strategy. This strategy currently uses a
max_chunk_size_tokens
of800
andchunk_overlap_tokens
of400
.
-
staticFileChunkingStrategyObjectParam
final Optional<StaticFileChunkingStrategyObjectParam> staticFileChunkingStrategyObjectParam()
-
isAutoFileChunkingStrategyParam
final Boolean isAutoFileChunkingStrategyParam()
-
isStaticFileChunkingStrategyObjectParam
final Boolean isStaticFileChunkingStrategyObjectParam()
-
asAutoFileChunkingStrategyParam
final AutoFileChunkingStrategyParam asAutoFileChunkingStrategyParam()
The default strategy. This strategy currently uses a
max_chunk_size_tokens
of800
andchunk_overlap_tokens
of400
.
-
asStaticFileChunkingStrategyObjectParam
final StaticFileChunkingStrategyObjectParam asStaticFileChunkingStrategyObjectParam()
-
accept
final <T extends Any> T accept(FileChunkingStrategyParam.Visitor<T> visitor)
-
validate
final FileChunkingStrategyParam validate()
-
ofAutoFileChunkingStrategyParam
final static FileChunkingStrategyParam ofAutoFileChunkingStrategyParam(AutoFileChunkingStrategyParam autoFileChunkingStrategyParam)
The default strategy. This strategy currently uses a
max_chunk_size_tokens
of800
andchunk_overlap_tokens
of400
.
-
ofStaticFileChunkingStrategyObjectParam
final static FileChunkingStrategyParam ofStaticFileChunkingStrategyObjectParam(StaticFileChunkingStrategyObjectParam staticFileChunkingStrategyObjectParam)
-
-
-
-