Skip to content

Commit ae01b01

Browse files
committed
docs(skills): objectstack-ai teaches that a markdown section that fits maxChars is one passage
The Splitting (`split`) block of skills/objectstack-ai/SKILL.md follows the splitter as landed in f19ee34: under `split.strategy: 'markdown'` a section that fits `maxChars` with its heading path is one passage, and `minChars` merges only the pieces of `recursive` text and of a `markdown` section that does not fit. Three restatements are cut in the same block. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
1 parent f459c86 commit ae01b01

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-ai` teaches that a `markdown` section that fits `maxChars` is one passage
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ai` § Knowledge Sources (RAG), the **Splitting (`split`)** block now follows the splitter:
11+
12+
- The `markdown` bullet says that a section that fits `maxChars` together with its heading path is one passage, and that a section that does not fit is cut as `recursive` cuts.
13+
- The `minChars` sentence says that pieces shorter than `minChars` are merged in `recursive` text and in a `markdown` section that does not fit, and that a section that fits stays whole whatever `minChars` is. An author no longer sets `minChars` equal to `maxChars` to keep a short clause, or a table with its note, in one passage.
14+
15+
Cut in the same block, with no fact dropped: "For documents with headings" (the bullet's "one section per heading" says it), "once `split` is written" (the signature and the omitted-`split` clause say it) and "never truncated" (the `whole` bullet's "removed from the index and reported" says it).

‎skills/objectstack-ai/SKILL.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,22 +324,23 @@ export const supportKb: KnowledgeSource = KnowledgeSourceSchema.parse({
324324

325325
**Splitting (`split`).** The knowledge service cuts each document into passages
326326
for a store declaring `capabilities.chunks`; any other store receives whole
327-
documents. `split: { strategy, maxChars?, minChars? }` — `strategy` is required
328-
once `split` is written; an omitted `split` means `recursive`:
327+
documents. `split: { strategy, maxChars?, minChars? }` — `strategy` is
328+
required; an omitted `split` means `recursive`:
329329

330330
- `recursive`: cuts at blank lines, then line breaks, then sentence ends. For
331331
prose.
332332
- `markdown`: one section per heading, each passage embedded with its heading
333-
path. For documents with headings.
333+
path. A section that fits `maxChars` with that path is one passage; one that
334+
does not is cut as `recursive` cuts.
334335
- `whole`: one passage per document. For short records only: a document over
335-
the embedder's input budget is removed from the index and reported, never
336-
truncated.
336+
the embedder's input budget is removed from the index and reported.
337337

338338
`maxChars`, the longest passage in characters (`whole` ignores it), overrides
339339
the **Target chunk size** setting (`knowledge.chunk_target`, else 800); the
340340
embedder's input limit can lower it. Adjacent pieces shorter than `minChars`
341-
(default 200) are merged. Changing `split` re-splits a document only when it
342-
next changes.
341+
(default 200) are merged in `recursive` text and in a `markdown` section that
342+
does not fit; a section that fits stays whole whatever `minChars` is. Changing
343+
`split` re-splits a document only when it next changes.
343344

344345
Retired and refused: the `knowledge.chunk_overlap` setting (`400 UNKNOWN_KEY`;
345346
passages never overlap) and `KnowledgeChunk.metadata` (parse error; a passage

0 commit comments

Comments
 (0)