mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 21:12:48 +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,4 +1,4 @@
|
||||
from typing import Any, Callable, Iterator, List, Mapping, Optional
|
||||
from typing import Any, Callable, Iterator, Mapping, Optional
|
||||
|
||||
from langchain_core.documents import Document
|
||||
from langchain_core.utils.utils import guard_import
|
||||
@@ -53,9 +53,6 @@ class AirbyteCDKLoader(BaseLoader):
|
||||
self._stream_name = stream_name
|
||||
self._state = state
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
return list(self.lazy_load())
|
||||
|
||||
def lazy_load(self) -> Iterator[Document]:
|
||||
return self._integration._load_data(
|
||||
stream_name=self._stream_name, state=self._state
|
||||
|
Reference in New Issue
Block a user