The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: unstructured no longer requires installing detectron2 from source (#5524)
Matt Robinson4c8aad0d1b98
diff --git a/docs/integrations/unstructured.md b/docs/integrations/unstructured.mdindex 6c07bb653a..fb3ba2a50d 100644--- a/docs/integrations/unstructured.md+++ b/docs/integrations/unstructured.md@@ -4,8 +4,7 @@[Unstructured.IO](https://www.unstructured.io/) extracts clean text from raw source documents likePDFs and Word documents.This page covers how to use the [`unstructured`](https://github.com/Unstructured-IO/unstructured)-ecosystem within LangChain.-+ecosystem within LangChain.## Installation and Setup@@ -20,12 +19,6 @@ its dependencies running locally.- `tesseract-ocr`(images and PDFs)- `libreoffice` (MS Office docs)- `pandoc` (EPUBs)-- If you are parsing PDFs using the `"hi_res"` strategy, run the following to install the `detectron2` model, which- `unstructured` uses for layout detection:- - `pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2"`- - If `detectron2` is not installed, `unstructured` will fallback to processing PDFs- using the `"fast"` strategy, which uses `pdfminer` directly and doesn't require- `detectron2`.If you want to get up and running with less set up, you cansimply run `pip install unstructured` and use `UnstructuredAPIFileLoader` ordiff --git a/docs/modules/indexes/document_loaders/examples/unstructured_file.ipynb b/docs/modules/indexes/document_loaders/examples/unstructured_file.ipynbindex e391f1ac2b..8bccef0df7 100644--- a/docs/modules/indexes/document_loaders/examples/unstructured_file.ipynb+++ b/docs/modules/indexes/document_loaders/examples/unstructured_file.ipynb@@ -19,7 +19,6 @@"source": ["# # Install package\n","!pip install \"unstructured[local-inference]\"\n",- "!pip install \"detectron2@git+https://github.com/facebookresearch/[email protected]#egg=detectron2\"\n","!pip install layoutparser[layoutmodels,tesseract]"]},