Skip to content

feat: markdown/prose chunker — split by heading, respect token window #405

Closed

Description

@ajianaz

Code chunker exists (chunker.rs) for Rust/Go/Python/TS/Dart. Need equivalent for markdown/prose content. Split by ## headings, respect embedder max_seq_len (~256 tokens for ONNX, ~8K for API). Output: TextChunk { heading, content, char_start, char_end }. Must handle nested content (code blocks, deep lists) via paragraph-level fallback.

Activity

  1. added
    enhancement
    scope:core
    type:feature
    priority:high
    epic:memory-engine
    on Jun 21, 2026
  2. added this to the v0.3.0 — Graph RAG milestone on Jun 21, 2026
  3. added 2 commits that reference this issue on Jun 21, 2026
  4. ajianaz commented on Jun 21, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in #420. chunk_markdown() added with heading-based splitting, code block awareness, paragraph fallback.

  5. added a commit that references this issue on Jun 21, 2026
  6. added 2 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic:memory-enginepriority:highscope:coretype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions