Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cookbooks/python/langchain/lc_openai_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"source": [
"%pip install langchain-openai\n",
"%pip install langchain-community\n",
"%pip install faiss-cpu"
"%pip install faiss-cpu\n",
"%pip install beautifulsoup4"
]
},
{
Expand Down Expand Up @@ -187,6 +188,8 @@
"source": [
"from langchain_community.document_loaders import WebBaseLoader\n",
"\n",
"# Set the USER_AGENT environment variable which is required for the WebBaseLoader to load the page\n",
"os.environ['USER_AGENT'] = \"YourUserAgentString\"\n",
"loader = WebBaseLoader(\"https://en.wikipedia.org/wiki/Eurovision_Song_Contest_2024\")\n",
"\n",
"docs = loader.load()\n",
Expand Down