mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +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
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
import urllib.request
|
||||
from typing import Any, Iterator, List
|
||||
from typing import Any, Iterator
|
||||
|
||||
from langchain_core.documents import Document
|
||||
|
||||
@@ -46,7 +46,3 @@ class LarkSuiteDocLoader(BaseLoader):
|
||||
"title": metadata_json["data"]["document"]["title"],
|
||||
}
|
||||
yield Document(page_content=text, metadata=metadata)
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
"""Load LarkSuite (FeiShu) document."""
|
||||
return list(self.lazy_load())
|
||||
|
Reference in New Issue
Block a user