• Reads a file and splits its content into fragments.

    Parameters

    • filePath: string

      Path to the text file.

    • maxLength: number = 1000

      Maximum length of each fragment.

    Returns string[]