forked from Archives/langchain
Fixed the example code (#4117)
Fixed the issue mentioned here: https://github.com/hwchase17/langchain/issues/3799#issuecomment-1534785861 Co-authored-by: Pawel Faron <ext-pawel.faron@vaisala.com>
This commit is contained in:
parent
19e28d8784
commit
bb6d97c18c
@ -102,7 +102,7 @@
|
||||
"pages = text_splitter.split_text(state_of_the_union)\n",
|
||||
"\n",
|
||||
"text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)\n",
|
||||
"texts = text_splitter.split_documents(pages)\n",
|
||||
"texts = text_splitter.create_documents(pages)\n",
|
||||
"\n",
|
||||
"print (texts)\n",
|
||||
"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user