From bb6d97c18c0b5801789b07036773f89d8c1d69d3 Mon Sep 17 00:00:00 2001 From: PawelFaron <42373772+PawelFaron@users.noreply.github.com> Date: Fri, 5 May 2023 23:22:10 +0200 Subject: [PATCH] Fixed the example code (#4117) Fixed the issue mentioned here: https://github.com/hwchase17/langchain/issues/3799#issuecomment-1534785861 Co-authored-by: Pawel Faron --- .../question_answering/semantic-search-over-chat.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/use_cases/question_answering/semantic-search-over-chat.ipynb b/docs/use_cases/question_answering/semantic-search-over-chat.ipynb index 3a53bc33..8c19ef52 100644 --- a/docs/use_cases/question_answering/semantic-search-over-chat.ipynb +++ b/docs/use_cases/question_answering/semantic-search-over-chat.ipynb @@ -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",