DocumentationAPI Reference📓 Tutorials🧑‍🍳 Cookbook🤝 Integrations💜 Discord🎨 Studio
Documentation

PreProcessors

Use the PreProcessors to preprare your data normalize white spaces, remove headers and footers, clean empty lines in your Documents, or split them into smaller pieces. PreProcessors are useful in an indexing pipeline to prepare your files for search.

PreProcessor

Description

ChineseDocumentSplitter

Divides Chinese text documents into smaller chunks using advanced Chinese language processing capabilities, using HanLP for accurate Chinese word segmentation and sentence tokenization.

CSVDocumentCleaner

Cleans CSV documents by removing empty rows and columns while preserving specific ignored rows and columns.

CSVDocumentSplitter

Divides CSV documents into smaller sub-tables based on empty rows and columns.

DocumentCleaner

Removes extra whitespaces, empty lines, specified substrings, regexes, page headers, and footers from documents.

DocumentPreprocessor

Divides a list of text documents into a list of shorter text documents and then makes them more readable by cleaning.

DocumentSplitter

Splits a list of text documents into a list of text documents with shorter texts.

HierarchicalDocumentSplitter

Creates a multi-level document structure based on parent-children relationships between text segments.

RecursiveSplitter

Splits text into smaller chunks, it does so by recursively applying a list of separators
to the text, applied in the order they are provided.

TextCleaner

Removes regexes, punctuation, and numbers, as well as converts text to lowercase. Useful to clean up text data before evaluation.


Related Links