Skip to content

Commit

Permalink
Update agent_rag.ipynb
Browse files Browse the repository at this point in the history
Fixed a bug where unique_texts were storing the incorrect piece of text.
  • Loading branch information
sayanb authored Jul 23, 2024
1 parent 1e7f5d7 commit 18a506c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/en/agent_rag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 18a506c

Please sign in to comment.