StaticChunkingStrategy class

Static chunking strategy with fixed parameters.

Implemented types
Annotations
  • @immutable

Constructors

StaticChunkingStrategy({required int maxChunkSizeTokens, required int chunkOverlapTokens})
Creates a StaticChunkingStrategy.
const
StaticChunkingStrategy.fromJson(Map<String, dynamic> json)
Creates a StaticChunkingStrategy from JSON.
factory

Properties

chunkOverlapTokens int
Number of tokens to overlap between chunks.
final
hashCode int
The hash code for this object.
no setteroverride
maxChunkSizeTokens int
Maximum number of tokens per chunk.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override