diff --git a/langchain/document_loaders/snowflake_loader.py b/langchain/document_loaders/snowflake_loader.py index 115f6e7b..b76a7426 100644 --- a/langchain/document_loaders/snowflake_loader.py +++ b/langchain/document_loaders/snowflake_loader.py @@ -118,3 +118,6 @@ class SnowflakeLoader(BaseLoader): metadata = {k: v for k, v in row.items() if k in metadata_columns} doc = Document(page_content=page_content, metadata=metadata) yield doc + + def load(self) -> List[Document]: + return list(self.lazy_load())