You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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()
```
1 year ago
..
_static docs: Big Mendable Improvements (#4964) 1 year ago
additional_resources Update gallery (#4873) 1 year ago
getting_started Update tutorials.md (#4960) 1 year ago
integrations move docs 1 year ago
modules feat: batch multiple files in a single Unstructured API request (#4525) 1 year ago
reference docs: compound ecosystem and integrations (#4870) 1 year ago
tracing Some notebook and client fixes (add retries, clean up docs, etc) (#4820) 1 year ago
use_cases Typos (#4851) 1 year ago
Makefile Feature: linkcheck-action (#534) (#542) 2 years ago
conf.py docs: Mendable Search integration (#2803) 1 year ago
dependents.md docs: added `ecosystem/dependents` page (#4941) 1 year ago
index.rst docs: added `ecosystem/dependents` page (#4941) 1 year ago
integrations.rst docs: compound ecosystem and integrations (#4870) 1 year ago
make.bat initial commit 2 years ago
reference.rst Move Generative Agent definition to Experimental (#3245) 1 year ago
requirements.txt Harrison/docs reqs (#2199) 1 year ago