Back to Mastra

Chunk text

examples/basics/rag/chunk-markdown/README.md

2025-12-18452 B
Original Source

Chunk text

A simple example showing how to chunk markdown using Mastra.

Prerequisites

  • Node.js 22.13.0 or later
  • pnpm (recommended) or npm

Getting Started

  1. Clone the repository and navigate to the project directory:

    bash
    git clone https://github.com/mastra-ai/mastra
    cd examples/basics/rag/chunk-markdown
    
  2. Install dependencies:

    pnpm install
    
  3. Run the example:

    bash
    pnpm start