Documentation ¶
Overview ¶
Package textsplitter provides utilities for splitting and processing text in GoLC applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTextSplitter ¶
type BaseTextSplitter struct {
// contains filtered or unexported fields
}
func NewBaseTextSplitter ¶
func NewBaseTextSplitter(splitTextFunc SplitTextFunc, optFns ...func(o *Options)) *BaseTextSplitter
func (*BaseTextSplitter) CreateDocuments ¶
func (*BaseTextSplitter) SplitDocuments ¶
type CharacterTextSplitter ¶
type CharacterTextSplitter struct { *BaseTextSplitter // contains filtered or unexported fields }
func NewCharacterTextSplitter ¶
func NewCharacterTextSplitter(optFns ...func(o *CharacterTextSplitterOptions)) *CharacterTextSplitter
type LengthFunc ¶
type Options ¶
type Options struct { ChunkSize int ChunkOverlap int KeepSeparator bool LengthFunc LengthFunc }
type RecursiveCharacterTextSplitter ¶
type RecursiveCharacterTextSplitter struct { *BaseTextSplitter // contains filtered or unexported fields }
func NewRecusiveCharacterTextSplitter ¶
func NewRecusiveCharacterTextSplitter(optFns ...func(o *RecursiveCharacterTextSplitterOptions)) *RecursiveCharacterTextSplitter
type SplitTextFunc ¶
Click to show internal directories.
Click to hide internal directories.