mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
core[minor]: Add aload to document loader (#19936)
Add aload to document loader
This commit is contained in:
@@ -251,7 +251,7 @@ class WebBaseLoader(BaseLoader):
|
||||
metadata = _build_metadata(soup, path)
|
||||
yield Document(page_content=text, metadata=metadata)
|
||||
|
||||
def aload(self) -> List[Document]:
|
||||
def aload(self) -> List[Document]: # type: ignore
|
||||
"""Load text from the urls in web_path async into Documents."""
|
||||
|
||||
results = self.scrape_all(self.web_paths)
|
||||
|
Reference in New Issue
Block a user