Files
langchain/tests/integration_tests/document_loaders
Matt Robinson bf3f554357 feat: batch multiple files in a single Unstructured API request (#4525)
### Submit Multiple Files to the Unstructured API

Enables batching multiple files into a single Unstructured API requests.
Support for requests with multiple files was added to both
`UnstructuredAPIFileLoader` and `UnstructuredAPIFileIOLoader`. Note that
if you submit multiple files in "single" mode, the result will be
concatenated into a single document. We recommend using this feature in
"elements" mode.

### Testing

The following should load both documents, using two of the example docs
from the integration tests folder.

```python
    from langchain.document_loaders import UnstructuredAPIFileLoader

    file_paths = ["examples/layout-parser-paper.pdf",  "examples/whatsapp_chat.txt"]

    loader = UnstructuredAPIFileLoader(
        file_paths=file_paths,
        api_key="FAKE_API_KEY",
        strategy="fast",
        mode="elements",
    )
    docs = loader.load()
```
2023-05-21 20:48:20 -07:00
..
2023-05-17 22:39:11 -04:00
2023-04-26 21:04:56 -07:00
2023-03-28 08:17:22 -07:00
2023-03-28 08:38:19 -07:00
2023-03-27 19:51:34 -07:00
2023-04-04 06:48:34 -07:00
2023-03-28 15:28:33 -07:00
2023-05-05 14:48:13 -07:00
2023-05-05 17:55:31 -07:00
2023-05-14 22:04:38 -07:00
2023-05-01 20:56:56 -07:00