fix: Update components-loaders.md for accuracy with Unstructured (#5014)

This commit is contained in:
Eric Hare 2024-12-02 14:20:18 -08:00 committed by GitHub
commit 9f3663e560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,7 @@ The GitLoader component uses the GitLoader from LangChain to fetch and load docu
## Unstructured
This component uses the [Unstructured](https://unstructured.io/) library to load and parse PDF, DOCX, and TXT files into structured data. This component works with both the open-source library and the Unstructured API.
This component uses the [Unstructured.io](https://unstructured.io/) Serverless API to load and parse files into structured data.
### Parameters
@ -64,11 +64,11 @@ This component uses the [Unstructured](https://unstructured.io/) library to load
| Name | Display Name | Info |
| --- | --- | --- |
| file | File | The path to the file to be parsed (supported types: pdf, docx, txt) |
| api_key | API Key | Unstructured API Key (optional, if not provided, open-source library will be used) |
| file | File | The path to the file to be parsed (supported types are listed [here](https://docs.unstructured.io/api-reference/api-services/overview#supported-file-types)) |
| api_key | API Key | Unstructured.io Serverless API Key |
#### Outputs:
| Name | Display Name | Info |
| --- | --- | --- |
| data | Data | List of Data objects containing the parsed content from the input file |
| data | Data | List of Data objects containing the parsed content from the input file |