Go: implement provider: PaddleOCR_Local (#15158)

### What problem does this PR solve?

Go: implement provider: PaddleOCR_Local

**Verified from CLI**

```
RAGFlow(user)> ocr with 'PaddleOCR-VL@test@paddleocr_local' file './internal/test1.jpg'
+----------------------+
| text                 |
+----------------------+
| ## Parallel to these |
+----------------------+
```

### Type of change

- [X] Bug Fix (non-breaking change which fixes an issue)
- [X] New Feature (non-breaking change which adds functionality)
- [X] Refactoring
This commit is contained in:
Haruko386
2026-05-25 12:12:57 +08:00
committed by GitHub
parent 8d8ea71877
commit 5d022d83e8
7 changed files with 226 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
"models": "models",
"status": "",
"balance": "tokens/packages/balance",
"embedding": "embedding",
"embedding": "embeddings",
"rerank": "rerank",
"ocr": "images/ocr",
"doc_parse": "async/documents/parse",

View File

@@ -1,5 +1,5 @@
{
"name": "mineru_local",
"name": "MinerU_local",
"url_suffix": {
"doc_parse": "file_parse",
"task": "tasks"

View File

@@ -0,0 +1,7 @@
{
"name": "PaddleOCR_Local",
"url_suffix": {
"ocr": "layout-parsing"
},
"class": "local"
}

View File

@@ -57,7 +57,7 @@
},
{
"name": "mixedbread-ai/mxbai-rerank-large-v2",
"max_tokens": "16384",
"max_tokens": 16384,
"model_types": [
"rerank"
]
@@ -76,3 +76,4 @@
}
]
}

View File

@@ -12,7 +12,8 @@
"asr": "audio/transcriptions",
"tts": "audio/speech",
"files": "files",
"models": "models"
"models": "models",
"ocr": "layout_parsing"
},
"class": "glm",
"models": [
@@ -268,6 +269,12 @@
"model_types": [
"rerank"
]
},
{
"name": "glm-ocr",
"model_types": [
"ocr"
]
}
]
}