从API获取元素#
- langchain_community.document_loaders.unstructured.get_elements_from_api(file_path: str | List[str] | Path | List[Path] | None = None, file: IO[bytes] | Sequence[IO[bytes]] | None = None, api_url: str = 'https://api.unstructuredapp.io/general/v0/general', api_key: str = '', **unstructured_kwargs: Any) List[Any] [source]#
从Unstructured API中检索元素列表。
- Parameters:
file_path (str | List[str] | Path | List[Path] | None)
文件 (IO[字节] | 序列[IO[字节]] | 无)
api_url (str)
api_key (str)
unstructured_kwargs (Any)
- Return type:
列表[任意类型]