langchain/docs/modules
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
..
agents Fix annoying typo in docs (#5029) 2023-05-20 22:02:21 -07:00
callbacks add more color to callbacks docs (#3856) 2023-04-30 19:13:01 -07:00
chains Add documentation for Databricks integration (#5013) 2023-05-20 22:06:24 -07:00
indexes feat: batch multiple files in a single Unstructured API request (#4525) 2023-05-21 20:48:20 -07:00
memory Zep memory (#4898) 2023-05-17 20:01:01 -07:00
models Update the GPTCache example (#4985) 2023-05-19 16:35:36 -07:00
prompts fix prompt saving (#4987) 2023-05-20 08:21:52 -07:00
utils/examples Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
agents.rst DOC: Misspelling in agents.rst documentation (#5038) 2023-05-20 22:24:08 -07:00
chains.rst
indexes.rst
memory.rst
models.rst Harrison/standard llm interface (#4615) 2023-05-13 09:05:31 -07:00
paul_graham_essay.txt
prompts.rst Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
state_of_the_union.txt