langchain/docs
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
..
_static docs: Big Mendable Improvements (#4964) 2023-05-19 15:31:48 -07:00
additional_resources Update gallery (#4873) 2023-05-17 20:59:41 -07:00
getting_started Update tutorials.md (#4960) 2023-05-19 10:40:14 -04:00
integrations move docs 2023-05-21 09:22:35 -07:00
modules feat: batch multiple files in a single Unstructured API request (#4525) 2023-05-21 20:48:20 -07:00
reference docs: compound ecosystem and integrations (#4870) 2023-05-18 09:29:57 -07:00
tracing Some notebook and client fixes (add retries, clean up docs, etc) (#4820) 2023-05-16 20:23:00 -07:00
use_cases Typos (#4851) 2023-05-17 11:52:22 -04:00
conf.py
dependents.md docs: added ecosystem/dependents page (#4941) 2023-05-18 13:11:08 -07:00
index.rst docs: added ecosystem/dependents page (#4941) 2023-05-18 13:11:08 -07:00
integrations.rst docs: compound ecosystem and integrations (#4870) 2023-05-18 09:29:57 -07:00
make.bat
Makefile
reference.rst Move Generative Agent definition to Experimental (#3245) 2023-04-23 18:32:37 -07:00
requirements.txt