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:
PawelFaron
2023-05-05 23:22:10 +02:00
committed by GitHub
parent 19e28d8784
commit bb6d97c18c

View File

@@ -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",