Files
langchain/docs/modules/indexes/document_loaders/examples/readthedocs_documentation.ipynb
T
2023-03-26 19:49:46 -07:00

1.7 KiB

ReadTheDocs Documentation

This notebook covers how to load content from html that was generated as part of a Read-The-Docs build.

For an example of this in the wild, see here.

This assumes that the html has already been scraped into a folder. This can be done by uncommenting and running the following command

In [ ]:
#!wget -r -A.html -P rtdocs https://langchain.readthedocs.io/en/latest/
In [2]:
from langchain.document_loaders import ReadTheDocsLoader
In [3]:
loader = ReadTheDocsLoader("rtdocs")
In [ ]:
docs = loader.load()