Interface ChunkingStrategy
- All Known Implementing Classes:
ChunkingStrategy.AutoChunkingStrategy,ChunkingStrategy.OtherChunkingStrategy,ChunkingStrategy.StaticChunkingStrategy
public sealed interface ChunkingStrategy
permits ChunkingStrategy.AutoChunkingStrategy, ChunkingStrategy.StaticChunkingStrategy, ChunkingStrategy.OtherChunkingStrategy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstaticChunkingStrategy(int maxChunkSizeTokens, int chunkOverlapTokens) type()
-
Method Details
-
type
String type() -
autoChunkingStrategy
-
staticChunkingStrategy
static ChunkingStrategy.StaticChunkingStrategy staticChunkingStrategy(int maxChunkSizeTokens, int chunkOverlapTokens) - Parameters:
maxChunkSizeTokens- The maximum number of tokens in each chunk.chunkOverlapTokens- The number of tokens that overlap between chunks. Note that the overlap must not exceed half of `max_chunk_size_tokens`.
-
otherChunkingStrategy
-