mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-10 01:11:23 +08:00
Revert "feat: Go knowledge compiler with scheduler-driven dataset compilation" (#17897)
Reverts infiniflow/ragflow#17881
This commit is contained in:
@@ -164,16 +164,19 @@ def enhance_media_sections_with_vision(
|
||||
tenant_id,
|
||||
vlm_conf=None,
|
||||
callback=None,
|
||||
lang="English",
|
||||
):
|
||||
if not sections or not tenant_id:
|
||||
return sections
|
||||
|
||||
lang = lang or "English"
|
||||
|
||||
try:
|
||||
try:
|
||||
vision_model_config = resolve_model_config(tenant_id, LLMType.VISION, vlm_conf["llm_id"])
|
||||
except Exception:
|
||||
vision_model_config = get_tenant_default_model_by_type(tenant_id, LLMType.VISION)
|
||||
vision_model = LLMBundle(tenant_id, vision_model_config)
|
||||
vision_model = LLMBundle(tenant_id, vision_model_config, lang=lang)
|
||||
except Exception:
|
||||
return sections
|
||||
|
||||
@@ -189,6 +192,7 @@ def enhance_media_sections_with_vision(
|
||||
vision_model=vision_model,
|
||||
figures_data=[((item["image"], [""]), [(0, 0, 0, 0, 0)])],
|
||||
context_size=0,
|
||||
lang=lang,
|
||||
)(callback=callback)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user