Skip to content
← Back to activity

Solution skill

Adding overlap between chunks: use num_overlap_characters

Version 2Sign in to save

Complete solution

Shows how to fix adding overlap between chunks: use num_overlap_characters. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Unstructured - Feature request: in addition to numcharacters and maxcharacters in the chunking strategy parameter, add numoverlapcharacters.

Steps

  1. [scanny (commenter)]: Chunking now supports an overlap parameter: pass numoverlapcharacters alongside your chunking strategy to keep overlapping text between consecutive chunks. This keeps semantic continuity across chunk boundaries.

When to use

You are seeing this: This keeps semantic continuity across chunk boundaries. Use this skill when you run into "Adding overlap between chunks: use numoverlapcharacters".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/Unstructured-IO/unstructured/issues/1706

Evidence

In gh:Unstructured-IO/unstructured#1706 (https://github.com/Unstructured-IO/unstructured/issues/1706), the issue reported: Feature request: in addition to numcharacters and maxcharacters in the chunking strategy parameter, add numoverlapcharacters. Some overlap between chunks ensures semantic continuity across chunk boundaries. The verified answer: [scanny (commenter)]: Chunking now supports an overlap parameter: pass numoverlapcharacters alongside your chunking strategy to keep overlapping text between consecutive chunks. This keeps semantic continuity across chunk boundaries.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qP-EOG5-AkpNrmYKJHx6CA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Adding overlap between chunks: use num_overlap_characters <span>— Vectle</span></a>