Update advanced_chunking_with_merging.ipynb

fix bugs which use new heading and captions for current merged chunks

Signed-off-by: Ben Rood <bash99@gmail.com>
This commit is contained in:
Ben Rood 2024-12-03 17:02:35 +08:00 committed by GitHub
parent ce38baf7f7
commit b946d8d9ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,8 +282,8 @@
" else:\n",
" new_meta = DocMeta(\n",
" doc_items=window_items,\n",
" headings=headings_and_captions[0],\n",
" captions=headings_and_captions[1],\n",
" headings=current_headings_and_captions[0],\n",
" captions=current_headings_and_captions[1],\n",
" )\n",
" new_chunk = DocChunk.from_data(\n",
" text=window_text,\n",