mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 12:56:55 +08:00
MinerU supports for the new backend vlm-mlx-engine (#11864)
### What problem does this PR solve? MinerU new version supports for the new backend vlm-mlx-engine,https://github.com/opendatalab/MinerU . ### Type of change - [ x ] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -106,7 +106,7 @@ class MinerUParser(RAGFlowPdfParser):
|
|||||||
def check_installation(self, backend: str = "pipeline", server_url: Optional[str] = None) -> tuple[bool, str]:
|
def check_installation(self, backend: str = "pipeline", server_url: Optional[str] = None) -> tuple[bool, str]:
|
||||||
reason = ""
|
reason = ""
|
||||||
|
|
||||||
valid_backends = ["pipeline", "vlm-http-client", "vlm-transformers", "vlm-vllm-engine"]
|
valid_backends = ["pipeline", "vlm-http-client", "vlm-transformers", "vlm-vllm-engine", "vlm-mlx-engine"]
|
||||||
if backend not in valid_backends:
|
if backend not in valid_backends:
|
||||||
reason = "[MinerU] Invalid backend '{backend}'. Valid backends are: {valid_backends}"
|
reason = "[MinerU] Invalid backend '{backend}'. Valid backends are: {valid_backends}"
|
||||||
self.logger.warning(reason)
|
self.logger.warning(reason)
|
||||||
|
|||||||
Reference in New Issue
Block a user