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

    Interface TextSplitter

    Defines the core functionality for splitting text into smaller chunks. This is essential for NLP and LLM applications, helping to manage text size for model token limits, improve RAG, and enable focused text analysis. Implementations will define specific splitting strategies (e.g., by character, word, or semantic boundaries) while aiming to preserve context.

    interface TextSplitter {
        splitText: (text: string) => Promise<string[]>;
    }

    Implemented by

    Index

    Properties

    Properties

    splitText: (text: string) => Promise<string[]>

    Splits a given text into an array of strings (chunks).

    Type Declaration

      • (text: string): Promise<string[]>
      • Parameters

        • text: string

          The input text to be split.

        Returns Promise<string[]>

        A promise that resolves to an array of string chunks.