Fix airbyte loader (#8998)

Fix airbyte loader

https://github.com/langchain-ai/langchain/issues/8996
This commit is contained in:
Eugene Yurtsev
2023-08-09 16:13:06 -04:00
committed by GitHub
parent 90579021f8
commit a6e6e9bb86
2 changed files with 10 additions and 2 deletions

View File

@@ -1,10 +1,9 @@
"""Loads local airbyte json files."""
from typing import Any, Callable, Iterator, List, Mapping, Optional
from libs.langchain.langchain.utils.utils import guard_import
from langchain.docstore.document import Document
from langchain.document_loaders.base import BaseLoader
from langchain.utils.utils import guard_import
RecordHandler = Callable[[Any, Optional[str]], Document]

View File

@@ -0,0 +1,9 @@
"""Test the airbyte document loader.
Light test to ensure that the airbyte document loader can be imported.
"""
def test_airbyte_import() -> None:
"""Test that the airbyte document loader can be imported."""
from langchain.document_loaders import airbyte # noqa