langchain/docs/modules/indexes
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
..
document_loaders/examples feat: batch multiple files in a single Unstructured API request (#4525) 2023-05-21 20:48:20 -07:00
retrievers/examples Add self query translator for weaviate vectorstore (#4804) 2023-05-19 16:41:12 -07:00
text_splitters docs: text splitters improvements (#4490) 2023-05-17 21:33:34 -07:00
vectorstores docs: vectorstores, different updates and fixes (#4939) 2023-05-18 15:35:47 -07:00
document_loaders.rst Docugami docs: First cell should be a title cell (#4735) 2023-05-16 13:12:14 -04:00
getting_started.ipynb Update getting_started.ipynb (#4850) 2023-05-17 13:19:14 -07:00
retrievers.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
text_splitters.rst docs: text splitters improvements (#4490) 2023-05-17 21:33:34 -07:00
vectorstores.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00