Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Feat: more model for paddle (#14436)

Magicbook1108d532151be06b
diff --git a/deepdoc/parser/paddleocr_parser.py b/deepdoc/parser/paddleocr_parser.py
index c697971266..30fb196dd2 100644
--- a/deepdoc/parser/paddleocr_parser.py
+++ b/deepdoc/parser/paddleocr_parser.py
@@ -41,7 +41,7 @@ except Exception:
from deepdoc.parser.utils import extract_pdf_outlines
-AlgorithmType = Literal["PaddleOCR-VL"]
+AlgorithmType = Literal["PaddleOCR-VL", "PP-OCRv5", "PP-StructureV3", "PaddleOCR-VL-1.5"]
SectionTuple = tuple[str, ...]
TableTuple = tuple[str, ...]
ParseResult = tuple[list[SectionTuple], list[TableTuple]]
diff --git a/web/src/pages/user-setting/setting-model/modal/paddleocr-modal/index.tsx b/web/src/pages/user-setting/setting-model/modal/paddleocr-modal/index.tsx
index 0c86f43513..e6ec80685b 100644
--- a/web/src/pages/user-setting/setting-model/modal/paddleocr-modal/index.tsx
+++ b/web/src/pages/user-setting/setting-model/modal/paddleocr-modal/index.tsx
@@ -45,7 +45,10 @@ export interface IModalProps<T> {
}
const algorithmOptions: RAGFlowSelectOptionType[] = [
+ { label: 'PaddleOCR-VL-1.5', value: 'PaddleOCR-VL-1.5' },
{ label: 'PaddleOCR-VL', value: 'PaddleOCR-VL' },
+ { label: 'PP-OCRv5', value: 'PP-OCRv5' },
+ { label: 'PP-StructureV3', value: 'PP-StructureV3' },
];
const PaddleOCRModal = ({