Unstructured-IO/unstructured

Convert documents to structured data effortlessly. Unstructured is open-source ETL solution for transforming complex documents into clean, structured formats for language models. Visit our website to learn more about our enterprise grade Platform product for production grade workflows, partitioning, enrichments, chunking and embedding.

What it solves

它简化了将 PDF、HTML、Word 文档、图像等非结构化数据导入并预处理成结构化格式的过程。此工具专为大型语言模型(LLM)的数据处理工作流设计,LLM 通常需要干净、结构化的文本才能有效运行。

How it works

该库使用模块化函数和连接器系统来导入文档。其核心机制是 partition 函数,能够自动检测文档的文件类型,并将其路由到相应的分区逻辑,将文档拆分为结构化元素(如文本块、标题或列表)。

Who it’s for

它面向构建 LLM 驱动应用的开发者和数据工程师,提供一种可靠的方法,将各种杂乱的真实世界文档格式转换为机器学习流水线可用的格式。

Highlights

  • Broad Format Support: 支持 PDF、HTML、Word 文档、电子邮件和图像。
  • Automatic Detection: partition 函数自动识别文件类型,简化导入管道。
  • Flexible Deployment: 可作为 Python 库安装,或通过 Docker 容器运行,便于环境管理。
  • Extensible: 提供连接器和模块化函数,以适应不同平台的扩展需求。