mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 20:46:45 +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
@@ -5,7 +5,6 @@ from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Iterator,
|
||||
List,
|
||||
Optional,
|
||||
Sequence,
|
||||
Union,
|
||||
@@ -106,9 +105,6 @@ class CassandraLoader(BaseLoader):
|
||||
if query_execution_profile is not _NOT_SET:
|
||||
self.query_kwargs["execution_profile"] = query_execution_profile
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
return list(self.lazy_load())
|
||||
|
||||
def lazy_load(self) -> Iterator[Document]:
|
||||
for row in self.session.execute(self.query, **self.query_kwargs):
|
||||
metadata = self.metadata.copy()
|
||||
|
Reference in New Issue
Block a user