Skip to content

The agent engineering platform.

docs: update `unstructured` install instructions (#8596)

Matt Robinson8961c720b8bc
diff --git a/docs/extras/integrations/document_loaders/unstructured_file.ipynb b/docs/extras/integrations/document_loaders/unstructured_file.ipynb
index 566fa02788..4653d1f41a 100644
--- a/docs/extras/integrations/document_loaders/unstructured_file.ipynb
+++ b/docs/extras/integrations/document_loaders/unstructured_file.ipynb
@@ -18,8 +18,7 @@
"outputs": [],
"source": [
"# # Install package\n",
- "!pip install \"unstructured[local-inference]\"\n",
- "!pip install layoutparser[layoutmodels,tesseract]"
+ "!pip install \"unstructured[all-docs]\"\n"
]
},
{
diff --git a/docs/extras/integrations/providers/unstructured.mdx b/docs/extras/integrations/providers/unstructured.mdx
index 8a6699e258..b0bccdbc94 100644
--- a/docs/extras/integrations/providers/unstructured.mdx
+++ b/docs/extras/integrations/providers/unstructured.mdx
@@ -11,7 +11,9 @@ ecosystem within LangChain.
If you are using a loader that runs locally, use the following steps to get `unstructured` and
its dependencies running locally.
-- Install the Python SDK with `pip install "unstructured[local-inference]"`
+- Install the Python SDK with `pip install unstructured`.
+ - You can install document specific dependencies with extras, i.e. `pip install "unstructured[docx]"`.
+ - To install the dependencies for all document types, use `pip install "unstructured[all-docs]"`.
- Install the following system dependencies if they are not already available on your system.
Depending on what document types you're parsing, you may not need all of these.
- `libmagic-dev` (filetype detection)