From 02057ab7fe754f74011cbd2d393572ab034d40a9 Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 13:57:50 +0800 Subject: [PATCH 1/6] modified model to model_a for Message History --- 2. LangChain.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2. LangChain.ipynb b/2. LangChain.ipynb index 9d29794..837d5fe 100644 --- a/2. LangChain.ipynb +++ b/2. LangChain.ipynb @@ -584,7 +584,7 @@ "metadata": {}, "outputs": [], "source": [ - "with_message_history = RunnableWithMessageHistory(model, get_session_history)" + "with_message_history = RunnableWithMessageHistory(model_a, get_session_history)" ] }, { From abe88fa2198b357b1345d80bac0cee2ee6e10bfd Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 14:07:41 +0800 Subject: [PATCH 2/6] Update 2. LangChain.ipynb --- 2. LangChain.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2. LangChain.ipynb b/2. LangChain.ipynb index 837d5fe..fcecc62 100644 --- a/2. LangChain.ipynb +++ b/2. LangChain.ipynb @@ -723,7 +723,7 @@ "metadata": {}, "outputs": [], "source": [ - "chain = prompt | model | parser" + "chain = prompt | model_a | parser" ] }, { From 96fb39f97074ff525fe506bc21f9a361fea1b27e Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 14:29:35 +0800 Subject: [PATCH 3/6] Update 3. Information Processing.ipynb --- 3. Information Processing.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3. Information Processing.ipynb b/3. Information Processing.ipynb index cdd5369..92ec61a 100644 --- a/3. Information Processing.ipynb +++ b/3. Information Processing.ipynb @@ -116,7 +116,7 @@ "metadata": {}, "outputs": [], "source": [ - "plt.style.use('./d4sci.mplstyle')" + "plt.style.use('d4sci.mplstyle')" ] }, { From 9bc34c186281c3bbdc3ddf8ee88678900fcd3dd5 Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 15:16:10 +0800 Subject: [PATCH 4/6] Update 4. ChatBots.ipynb --- 4. ChatBots.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4. ChatBots.ipynb b/4. ChatBots.ipynb index 0422a19..be212e6 100644 --- a/4. ChatBots.ipynb +++ b/4. ChatBots.ipynb @@ -117,7 +117,7 @@ "metadata": {}, "outputs": [], "source": [ - "plt.style.use('./d4sci.mplstyle')" + "plt.style.use('d4sci.mplstyle')" ] }, { From 60f4175ad167cb11703d156e26602ad9e8dd88ce Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 15:21:22 +0800 Subject: [PATCH 5/6] Update 4. ChatBots.ipynb --- 4. ChatBots.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4. ChatBots.ipynb b/4. ChatBots.ipynb index be212e6..cc38a1f 100644 --- a/4. ChatBots.ipynb +++ b/4. ChatBots.ipynb @@ -169,8 +169,8 @@ "outputs": [], "source": [ "text_splitter = CharacterTextSplitter(\n", - " chunk_size=1024, # Each chunk is of size 1024\n", - " chunk_overlap=128 # Neigboring chunks overlap by 128 characters\n", + " chunk_size=1024*4, # Each chunk is of size 1024\n", + " chunk_overlap=128*2 # Neigboring chunks overlap by 128 characters\n", ") \n", "\n", "texts = text_splitter.split_documents(document)" From 0925f33b6a2d7a080d5fbc4e08d4e98215295184 Mon Sep 17 00:00:00 2001 From: ElnazGhasemi Date: Wed, 22 Jan 2025 16:00:10 +0800 Subject: [PATCH 6/6] Update 5. Prompt Engineering.ipynb --- 5. Prompt Engineering.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5. Prompt Engineering.ipynb b/5. Prompt Engineering.ipynb index 3921e7f..580e7bb 100644 --- a/5. Prompt Engineering.ipynb +++ b/5. Prompt Engineering.ipynb @@ -98,7 +98,7 @@ "metadata": {}, "outputs": [], "source": [ - "plt.style.use('./d4sci.mplstyle')" + "plt.style.use('d4sci.mplstyle')" ] }, {