Skip to content

Commit

Permalink
docs: update readthedocs document loader options (#29556)
Browse files Browse the repository at this point in the history
Hi there!

This PR updates the documentation according to the code.
If we run the example as is, then it would result in the following
error:

![image](https://github.com/user-attachments/assets/9c0a336c-775c-489c-a275-f1153d447ecb)

It seems that this part of the code already supplied the required
argument to the BeautifulSoup4:

https://github.com/langchain-ai/langchain/blob/0c782ee5479f1eadf6cc532d7f27617bd2671fe9/libs/community/langchain_community/document_loaders/readthedocs.py#L87-L90

Since the example can only work by removing this argument, it also seems
legit to remove it from the documentation.
  • Loading branch information
pedestrianlove authored Feb 3, 2025
1 parent 0c782ee commit 48fa389
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"metadata": {},
"outputs": [],
"source": [
"loader = ReadTheDocsLoader(\"rtdocs\", features=\"html.parser\")"
"loader = ReadTheDocsLoader(\"rtdocs\")"
]
},
{
Expand Down

0 comments on commit 48fa389

Please sign in to comment.