mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-17 13:17:20 +08:00
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:
@@ -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",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "mineru_local",
|
||||
"name": "MinerU_local",
|
||||
"url_suffix": {
|
||||
"doc_parse": "file_parse",
|
||||
"task": "tasks"
|
||||
|
||||
7
conf/models/paddleocr_local.json
Normal file
7
conf/models/paddleocr_local.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "PaddleOCR_Local",
|
||||
"url_suffix": {
|
||||
"ocr": "layout-parsing"
|
||||
},
|
||||
"class": "local"
|
||||
}
|
||||
@@ -57,7 +57,7 @@
|
||||
},
|
||||
{
|
||||
"name": "mixedbread-ai/mxbai-rerank-large-v2",
|
||||
"max_tokens": "16384",
|
||||
"max_tokens": 16384,
|
||||
"model_types": [
|
||||
"rerank"
|
||||
]
|
||||
@@ -76,3 +76,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user