langchain_community.document_loaders.airbyte_json
.AirbyteJSONLoader¶
- class langchain_community.document_loaders.airbyte_json.AirbyteJSONLoader(file_path: Union[str, Path])[source]¶
加载本地的`Airbyte` json文件。
使用文件路径进行初始化。路径应以’/tmp/airbyte_local/’开头。
Attributes
file_path
Path to the directory containing the json files.
Methods
__init__
(file_path)使用文件路径进行初始化。路径应以'/tmp/airbyte_local/'开头。
一个用于文档的惰性加载器。
aload
()将数据加载到文档对象中。
一个用于文档的惰性加载器。
load
()将数据加载到文档对象中。
load_and_split
([text_splitter])加载文档并分割成块。块作为文档返回。
- Parameters
file_path (Union[str, Path]) –
- __init__(file_path: Union[str, Path])[source]¶
使用文件路径进行初始化。路径应以’/tmp/airbyte_local/’开头。
- Parameters
file_path (Union[str, Path]) –
- load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document] ¶
加载文档并分割成块。块作为文档返回。
不要覆盖此方法。应该被视为已弃用!
- 参数:
- text_splitter: 用于分割文档的TextSplitter实例。
默认为RecursiveCharacterTextSplitter。
- 返回:
文档列表。
- Parameters
text_splitter (Optional[TextSplitter]) –
- Return type
List[Document]