React Native RAG - v0.2.0
    Preparing search index...

    Class CharacterTextSplitter

    A text splitter that splits text based on a fixed character count. This is a wrapper around Langchain's CharacterTextSplitter.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Creates an instance of CharacterTextSplitter.

      Parameters

      • params: TextSplitterParams

        Parameters for the text splitter.

        • chunkSize

          The maximum size of each text chunk.

        • chunkOverlap

          The amount of overlap between consecutive text chunks.

      Returns CharacterTextSplitter

    Methods

    • Splits the given text into chunks based on character count.

      Parameters

      • text: string

        The input text to be split.

      Returns Promise<string[]>

      A promise that resolves to an array of string chunks.