Package com.openai.models.vectorstores
Class FileChunkingStrategy
-
- All Implemented Interfaces:
public final class FileChunkingStrategyThe strategy used to chunk the file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFileChunkingStrategy.VisitorAn interface that defines how to map each variant of FileChunkingStrategy to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<StaticFileChunkingStrategyObject>static_()final Optional<OtherFileChunkingStrategyObject>other()This is returned when the chunking strategy is unknown. final BooleanisStatic()final BooleanisOther()final StaticFileChunkingStrategyObjectasStatic()final OtherFileChunkingStrategyObjectasOther()This is returned when the chunking strategy is unknown. final Optional<JsonValue>_json()final <T extends Any> Taccept(FileChunkingStrategy.Visitor<T> visitor)final FileChunkingStrategyvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileChunkingStrategyofStatic(StaticFileChunkingStrategyObject static_)final static FileChunkingStrategyofOther(OtherFileChunkingStrategyObject other)This is returned when the chunking strategy is unknown. -
-
Method Detail
-
static_
final Optional<StaticFileChunkingStrategyObject> static_()
-
other
final Optional<OtherFileChunkingStrategyObject> other()
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategyconcept was introduced in the API.
-
asStatic
final StaticFileChunkingStrategyObject asStatic()
-
asOther
final OtherFileChunkingStrategyObject asOther()
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategyconcept was introduced in the API.
-
accept
final <T extends Any> T accept(FileChunkingStrategy.Visitor<T> visitor)
-
validate
final FileChunkingStrategy validate()
-
ofStatic
final static FileChunkingStrategy ofStatic(StaticFileChunkingStrategyObject static_)
-
ofOther
final static FileChunkingStrategy ofOther(OtherFileChunkingStrategyObject other)
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategyconcept was introduced in the API.
-
-
-
-