docs: fixed xml URL on sitemap docs exmaple, issue #17236 (#17304)

This commit is contained in:
Gustavo Isturiz 2024-03-29 09:36:54 +01:00 committed by GitHub
parent 7164015135
commit 824dccf5e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -62,7 +62,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -73,7 +73,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": null,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -107,7 +107,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"loader = SitemapLoader(\n", "loader = SitemapLoader(\n",
" web_path=\" https://api.python.langchain.com/sitemap.xml\",\n", " web_path=\"https://api.python.langchain.com/sitemap.xml\",\n",
" filter_urls=[\"https://api.python.langchain.com/en/latest\"],\n", " filter_urls=[\"https://api.python.langchain.com/en/latest\"],\n",
")\n", ")\n",
"documents = loader.load()" "documents = loader.load()"
@ -247,7 +247,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.9.18" "version": "3.11.4"
} }
}, },
"nbformat": 4, "nbformat": 4,