mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
community: Use default load() implementation in doc loaders (#18385)
Following https://github.com/langchain-ai/langchain/pull/18289
This commit is contained in:
committed by
GitHub
parent
42341bc787
commit
177f51c7bd
@@ -251,10 +251,6 @@ class WebBaseLoader(BaseLoader):
|
||||
metadata = _build_metadata(soup, path)
|
||||
yield Document(page_content=text, metadata=metadata)
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
"""Load text from the url(s) in web_path."""
|
||||
return list(self.lazy_load())
|
||||
|
||||
def aload(self) -> List[Document]:
|
||||
"""Load text from the urls in web_path async into Documents."""
|
||||
|
||||
|
Reference in New Issue
Block a user