Commit 16124d1
fix(nodes): propagate strategy metadata to emitted chunk documents
Copy chunk_index, start_char, end_char, and total_chunks from the
strategy's per-chunk metadata dict onto each emitted Doc's metadata
so downstream nodes can locate chunks within the source document.
Update the writeDocuments docstring to list all metadata keys.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 36ce8f8 commit 16124d1
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
0 commit comments