"d:\\RagProject\\.venv\\lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
"d:\\Work\\personal\\rag-project\\.venv\\lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n"
" from .autonotebook import tqdm as notebook_tqdm\n"
" This problem uses a dummy text to practice basic text handling. The purpose of the text is to help learners understand how text data can be stored and processed in a program. The sentences are simple so that beginners can focus on learning without difficulty. This task is useful for testing, practice, and improving reading or programming skills.\n",
" If you want it more beginner-friendly, more formal, or shorter, tell me and I’ll adjust it. \n",
" This problem (10101) uses a dummy text to practice basic text handling. The purpose of the text is to help learners understand how text data can be stored and processed in a program. The sentences are simple so that beginners can focus on learning without difficulty. This task is useful for testing, practice, and improving reading or programming skills.\n",
" If you want it more beginner-friendly, more formal, or shorter, tell me and I’ll adjust it. \n",
" \"\"\"\n",
"}\n",
"for filepath,content in sample_texts.items():\n",
" with open(filepath,'w',encoding=\"utf-8\") as f:\n",
" f.write(content)\n",
"print(\"Sample text files created!!\")"
]
},
{
"cell_type": "markdown",
"id": "aef19896",
"metadata": {},
"source": [
"TextLoader - Read Single File"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "a54bd380",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'list'>\n",
"[Document(metadata={'source': 'data/text_files/python_intro.txt'}, page_content='\\n This problem uses a dummy text to practice basic text handling. The purpose of the text is to help learners understand how text data can be stored and processed in a program. The sentences are simple so that beginners can focus on learning without difficulty. This task is useful for testing, practice, and improving reading or programming skills.\\n If you want it more beginner-friendly, more formal, or shorter, tell me and I’ll adjust it. \\n ')]\n"
This problem uses a dummy text to practice basic text handling. The purpose of the text is to help learners understand how text data can be stored and processed in a program. The sentences are simple so that beginners can focus on learning without difficulty. This task is useful for testing, practice, and improving reading or programming skills.
If you want it more beginner-friendly, more formal, or shorter, tell me and I’ll adjust it.
This problem (10101) uses a dummy text to practice basic text handling. The purpose of the text is to help learners understand how text data can be stored and processed in a program. The sentences are simple so that beginners can focus on learning without difficulty. This task is useful for testing, practice, and improving reading or programming skills.
If you want it more beginner-friendly, more formal, or shorter, tell me and I’ll adjust it.