Skip to main content
ragrails chunk reads extraction output JSON from --input-dir and writes chunks.json to --output-dir. Use it when you want to inspect or version chunks before embedding. If you do not need intermediate files, use ragrails ingest instead.

Command

Output:

Choosing Chunk Size

Start at --chunk-size 2000 with --chunk-overlap 200. Lower the size for dense factual content like FAQs, specs, or policies. Raise it when answers need more surrounding context.

Options

Next Stage

Extraction

Create document JSON.

Embedding

Embed chunk JSON.