From 18a506c9643f048ba2b5e1b9b398cab473ec64e4 Mon Sep 17 00:00:00 2001 From: sayanb Date: Tue, 23 Jul 2024 11:44:49 +1000 Subject: [PATCH] Update agent_rag.ipynb Fixed a bug where unique_texts were storing the incorrect piece of text. --- notebooks/en/agent_rag.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/en/agent_rag.ipynb b/notebooks/en/agent_rag.ipynb index 549e8780..4d827cfb 100644 --- a/notebooks/en/agent_rag.ipynb +++ b/notebooks/en/agent_rag.ipynb @@ -134,7 +134,7 @@ " new_docs = text_splitter.split_documents([doc])\n", " for new_doc in new_docs:\n", " if new_doc.page_content not in unique_texts:\n", - " unique_texts[doc.page_content] = True\n", + " unique_texts[new_doc.page_content] = True\n", " docs_processed.append(new_doc)\n", "\n", "print(\n",