{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "ename": "ModuleNotFoundError", "evalue": "No module named 'langchain.document_loaders'", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", "Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mlangchain\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mdocument_loaders\u001b[39;00m \u001b[39mimport\u001b[39;00m OnlinePDFLoader\n\u001b[1;32m 3\u001b[0m loader \u001b[39m=\u001b[39m OnlinePDFLoader(\u001b[39m\"\u001b[39m\u001b[39mhttps://arxiv.org/pdf/2302.03803.pdf\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 5\u001b[0m data \u001b[39m=\u001b[39m loader\u001b[39m.\u001b[39mload()\n", "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'langchain.document_loaders'" ] } ], "source": [ "from langchain.document_loaders import OnlinePDFLoader\n", "\n", "loader = OnlinePDFLoader(\"https://arxiv.org/pdf/2302.03803.pdf\")\n", "\n", "data = loader.load()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(data)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.2" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e" } } }, "nbformat": 4, "nbformat_minor": 2 }