Documentation ¶
Index ¶
- func CharacterTextSplitter(text string, maxChunkSize int, separator string, lengthFunc LengthFunc) []string
- func LatexTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
- func MarkdownTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
- func NaiveSentenceTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
- func RecursiveCharacterTextSplitter(text string, maxChunkSize int, separators []string, lengthFunc LengthFunc) []string
- type LengthFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharacterTextSplitter ¶
func CharacterTextSplitter(text string, maxChunkSize int, separator string, lengthFunc LengthFunc) []string
func LatexTextSplitter ¶
func LatexTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
func MarkdownTextSplitter ¶
func MarkdownTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
func NaiveSentenceTextSplitter ¶
func NaiveSentenceTextSplitter(text string, maxChunkSize int, lengthFunc LengthFunc) []string
func RecursiveCharacterTextSplitter ¶
func RecursiveCharacterTextSplitter(text string, maxChunkSize int, separators []string, lengthFunc LengthFunc) []string
Types ¶
type LengthFunc ¶
Click to show internal directories.
Click to hide internal directories.