{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "762ced79-92af-4876-9792-cee1783d265e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/Users/aqsa/AI Projects/Certification Challenge/formpilot/.venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020\n", " warnings.warn(\n", "/Users/aqsa/AI Projects/Certification Challenge/formpilot/ingest/ingest_forms.py:4: LangChainDeprecationWarning: Importing PyPDFLoader from langchain.document_loaders is deprecated. Please replace deprecated imports:\n", "\n", ">> from langchain.document_loaders import PyPDFLoader\n", "\n", "with new imports of:\n", "\n", ">> from langchain_community.document_loaders import PyPDFLoader\n", "\n", " from langchain.document_loaders import PyPDFLoader\n", "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain_core.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.\n", "\n", "For example, replace imports like: `from langchain_core.pydantic_v1 import BaseModel`\n", "with: `from pydantic import BaseModel`\n", "or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet. \tfrom pydantic.v1 import BaseModel\n", "\n", " return _bootstrap._gcd_import(name[level:], package, level)\n", "/Users/aqsa/AI Projects/Certification Challenge/formpilot/ingest/ingest_forms.py:6: LangChainDeprecationWarning: Importing OpenAIEmbeddings from langchain.embeddings is deprecated. Please replace deprecated imports:\n", "\n", ">> from langchain.embeddings import OpenAIEmbeddings\n", "\n", "with new imports of:\n", "\n", ">> from langchain_community.embeddings import OpenAIEmbeddings\n", "\n", " from langchain.embeddings import OpenAIEmbeddings\n", "Traceback (most recent call last):\n", " File \"/Users/aqsa/AI Projects/Certification Challenge/formpilot/ingest/ingest_forms.py\", line 8, in \n", " from dotenv import load_dotenv\n", "ModuleNotFoundError: No module named 'dotenv'\n" ] } ], "source": [ "!python ingest/ingest_forms.py\n" ] }, { "cell_type": "code", "execution_count": null, "id": "cc90a4af-f3e3-43b1-8dff-dc48238a560c", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "FormPilot Env", "language": "python", "name": "formpilot_env" }, "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.9.6" } }, "nbformat": 4, "nbformat_minor": 5 }