[PR #15572] Optimized PDF extraction function #28345

Closed
opened 2026-02-21 20:43:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/15572

State: closed
Merged: No


介绍:优化dify知识库的PDF文档提取能力,支持纯图片pdf的提取,支持pdf中图像、表格、公式的识别。

使用方法:
使用OpenDataLab开源项目优化dify在知识库部分的PDF文档识别功能。
https://github.com/opendatalab/PDF-Extract-Kit

本地部署

在api文件夹下下载模型文件
git clone https://www.modelscope.cn/opendatalab/pdf-extract-kit-1.0.git
如果不想下在api文件夹下可以修改pdf_extractor_config.yaml文件
其余部分按照官方文档安装即可

Docker 部署

进入docker目录
docker compose build
然后更改docker-compose.yaml文件,换到刚刚编译好的docker镜像
services:
api:
image: docker-api
worker:
image: docker-api
执行命令
docker compose up -d

等待5分种
进入127.0.0.1就可以使用

**Original Pull Request:** https://github.com/langgenius/dify/pull/15572 **State:** closed **Merged:** No --- 介绍:优化dify知识库的PDF文档提取能力,支持纯图片pdf的提取,支持pdf中图像、表格、公式的识别。 使用方法: 使用OpenDataLab开源项目优化dify在知识库部分的PDF文档识别功能。 https://github.com/opendatalab/PDF-Extract-Kit 本地部署 在api文件夹下下载模型文件 git clone https://www.modelscope.cn/opendatalab/pdf-extract-kit-1.0.git 如果不想下在api文件夹下可以修改pdf_extractor_config.yaml文件 其余部分按照官方文档安装即可 Docker 部署 进入docker目录 docker compose build 然后更改docker-compose.yaml文件,换到刚刚编译好的docker镜像 services: api: image: docker-api worker: image: docker-api 执行命令 docker compose up -d 等待5分种 进入127.0.0.1就可以使用
yindo added the pull-request label 2026-02-21 20:43:16 -05:00
yindo closed this issue 2026-02-21 20:43:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#28345