WeKnora/internal/infrastructure
wizardchen 2f86e5b13d feat(chunker): coalesce tiny adjacent chunks in heading splitter
Documents with many short headings (FAQ-style, quick refs) used to fail
the heading-tier validator with "too many tiny chunks" and silently fall
back to legacy splitting, defeating the purpose of heading-aware mode.

Merge physically adjacent sections whose combined size still fits within
ChunkSize, deriving a shared breadcrumb via commonHeadingPrefix so the
merged chunk's ContextHeader stays meaningful.

Tests cover the merge path, position-invariant preservation after merge,
ChunkSize ceiling, and the breadcrumb prefix helper. Existing tests that
relied on tiny fixtures were grown so each section stays distinct.
2026-05-06 20:23:05 +08:00
..
chunker feat(chunker): coalesce tiny adjacent chunks in heading splitter 2026-05-06 20:23:05 +08:00
docparser fix(docparser): preserve standalone image uploads from icon filter 2026-04-29 11:58:02 +08:00
web_fetch fix(web_fetch): use ValidateURLForSSRF instead of removed IsSSRFSafeURL 2026-03-31 22:26:16 +08:00
web_search feat: search engine adds proxy addresses and adds SSRF verification. 2026-04-17 16:38:02 +08:00