Skip to content

Commit

Permalink
Update haystack/components/preprocessors/recursive_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Husch Lee <[email protected]>
  • Loading branch information
davidsbatista and sjrl authored Dec 12, 2024
1 parent 2248135 commit 4263352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions haystack/components/preprocessors/recursive_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class RecursiveDocumentSplitter:
doc = Document(content=text)
doc_chunks = chunker.run([doc])
print(doc_chunks["documents"])
>[
>Document(id=..., content: 'Artificial intelligence (AI) - Introduction\n\n', meta: {'original_id': '65167a9823dd883de577e828ca4fd529e6f7241f0ff616acfce454d808478951'}),
>Document(id=..., content: 'AI, in its broadest sense, is intelligence exhibited by machines, particularly computer systems. ', meta: {'original_id': '65167a9823dd883de577e828ca4fd529e6f7241f0ff616acfce454d808478951'}),
Expand Down

0 comments on commit 4263352

Please sign in to comment.