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>
parallel_dir_loader
PawelFaron 1 year ago committed by GitHub
parent 19e28d8784
commit bb6d97c18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save