mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 01:55:36 -04:00
[PR #1685] [MERGED] feat(tools): add markdown_chunker - Advanced Markdown Chunker #1779
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugins/pull/1685
Author: @asukhodko
Created: 12/7/2025
Status: ✅ Merged
Merged: 12/24/2025
Merged by: @crazywoola
Base:
main← Head:main📝 Commits (5)
a9217cdfeat(tools): add markdown_chunker - Advanced Markdown Chunkeref48635Merge branch 'langgenius:main' into main6b6e52ffeat(tools): add markdown_chunker - Advanced Markdown Chunker9c3e968Merge branch 'langgenius:main' into mainb5a40cafeat(tools): add markdown_chunker - Advanced Markdown Chunker📊 Changes
1 file changed (+0 additions, -0 deletions)
View changed files
➕
asukhodko/markdown-chunker-2.1.4.difypkg(+0 -0)📄 Description
Structure-aware Markdown chunking for RAG with auto-strategy selection, adaptive sizing, hierarchical chunks, and rich metadata support.
Plugin Submission Form
1. Metadata
2. Submission Type
3. Description
Advanced Markdown Chunker is a structure-aware, multi-strategy Markdown chunking tool for Dify RAG workflows. It analyzes each document, automatically selects the most suitable chunking strategy from four specialized modes, and can adapt chunk size based on content complexity to keep chunks both structurally coherent and retrieval-friendly. :contentReference[oaicite:1]{index=1}
By default, each chunk can embed metadata (header paths, content type, line numbers, overlap context) directly into the chunk text, improving semantic retrieval quality in vector databases. All processing happens locally inside Dify; no external APIs or LLM calls are used for chunking. :contentReference[oaicite:2]{index=2}
Core capability: content-aware, multi-strategy chunking
The plugin inspects the document structure and content mix (code, lists, headings, plain text) and chooses between four internal strategies:
code_ratio ≥ 30%list_ratio > 40%≥ 3hierarchical header levels detectedEach strategy preserves Markdown semantics: headers, lists, tables, and code blocks are kept intact, and the chunker avoids splitting in unnatural places (e.g., mid-function or in the middle of a table row). :contentReference[oaicite:3]{index=3}
Key features
with configurable weights and bounds; disabled by default for backward compatibility. :contentReference[oaicite:7]{index=7}
$$...$$) and environments (\begin{equation},\begin{align}, etc.) as whole units across all strategies, which is critical for scientific and technical documents. :contentReference[oaicite:10]{index=10}Typical use cases
4. Checklist
5. Documentation Checklist
Please confirm that your plugin README includes all necessary information:
6. Privacy Protection Information
Based on Dify Plugin Privacy Protection Guidelines:
Data Collection
This plugin does NOT collect or store any personal data by default. All Markdown parsing and chunking are performed locally within the user's Dify instance:
Privacy Policy
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.