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

    Class MarkdownTextSplitter

    A text splitter specifically designed for Markdown documents, attempting to preserve Markdown structure within chunks. This is a wrapper around Langchain's MarkdownTextSplitter.

    Implements

    Index

    Constructors

    Methods

    Constructors

    • Creates an instance of MarkdownTextSplitter.

      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 MarkdownTextSplitter

    Methods

    • Splits the given Markdown text into chunks.

      Parameters

      • text: string

        The input Markdown text to be split.

      Returns Promise<string[]>

      A promise that resolves to an array of string chunks.