Skip to content

feat: embed-aware chunking — chunk size from embedder.max_seq_len() #407

Closed

Description

@ajianaz

Currently MAX_SEQ_LEN=256 is hardcoded. Need trait method on Embedder: fn max_seq_len() -> usize. Markdown chunker queries this to determine chunk boundaries. When switching to API embedding (8K+ tokens), chunks automatically get larger. Depends on #249 (pluggable embedding) being un-done from closed state.

Activity

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

    @ajianaz
    CollaboratorAuthor

    Implemented in #424. chunk_markdown_embed_aware() derives chunk size from embedder.max_seq_len().

  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:mediumscope:coretype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions